sqlframe 3.10.1__py3-none-any.whl → 3.12.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- sqlframe/_version.py +2 -2
- sqlframe/base/column.py +11 -8
- sqlframe/base/dataframe.py +5 -3
- sqlframe/base/decorators.py +41 -2
- sqlframe/base/function_alternatives.py +445 -404
- sqlframe/base/functions.py +1100 -73
- sqlframe/base/mixins/dataframe_mixins.py +3 -3
- sqlframe/base/operations.py +5 -5
- sqlframe/base/session.py +36 -4
- sqlframe/bigquery/dataframe.py +2 -2
- sqlframe/bigquery/functions.py +1 -361
- sqlframe/bigquery/functions.pyi +63 -156
- sqlframe/bigquery/session.py +4 -0
- sqlframe/databricks/dataframe.py +2 -2
- sqlframe/databricks/functions.py +0 -10
- sqlframe/databricks/functions.pyi +405 -413
- sqlframe/databricks/session.py +4 -0
- sqlframe/duckdb/dataframe.py +2 -2
- sqlframe/duckdb/functions.py +0 -40
- sqlframe/duckdb/functions.pyi +219 -216
- sqlframe/duckdb/session.py +4 -0
- sqlframe/postgres/dataframe.py +2 -2
- sqlframe/postgres/functions.py +1 -60
- sqlframe/postgres/functions.pyi +197 -196
- sqlframe/postgres/session.py +4 -0
- sqlframe/redshift/dataframe.py +2 -2
- sqlframe/redshift/functions.py +1 -4
- sqlframe/redshift/session.py +4 -0
- sqlframe/snowflake/dataframe.py +2 -2
- sqlframe/snowflake/functions.py +1 -55
- sqlframe/snowflake/functions.pyi +224 -220
- sqlframe/snowflake/session.py +4 -0
- sqlframe/spark/dataframe.py +2 -2
- sqlframe/spark/functions.py +0 -9
- sqlframe/spark/functions.pyi +411 -413
- sqlframe/spark/session.py +4 -0
- sqlframe/standalone/dataframe.py +2 -2
- sqlframe/standalone/functions.py +1 -1
- sqlframe/standalone/session.py +4 -0
- sqlframe/testing/utils.py +3 -3
- {sqlframe-3.10.1.dist-info → sqlframe-3.12.0.dist-info}/METADATA +2 -2
- {sqlframe-3.10.1.dist-info → sqlframe-3.12.0.dist-info}/RECORD +45 -45
- {sqlframe-3.10.1.dist-info → sqlframe-3.12.0.dist-info}/LICENSE +0 -0
- {sqlframe-3.10.1.dist-info → sqlframe-3.12.0.dist-info}/WHEEL +0 -0
- {sqlframe-3.10.1.dist-info → sqlframe-3.12.0.dist-info}/top_level.txt +0 -0
sqlframe/snowflake/functions.pyi
CHANGED
|
@@ -1,220 +1,224 @@
|
|
|
1
|
-
from sqlframe.base.
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
from sqlframe.base.functions import
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
1
|
+
from sqlframe.base.functions import abs as abs
|
|
2
|
+
from sqlframe.base.functions import acos as acos
|
|
3
|
+
from sqlframe.base.functions import acosh as acosh
|
|
4
|
+
from sqlframe.base.functions import add_months as add_months
|
|
5
|
+
from sqlframe.base.functions import any_value as any_value
|
|
6
|
+
from sqlframe.base.functions import approx_count_distinct as approx_count_distinct
|
|
7
|
+
from sqlframe.base.functions import approxCountDistinct as approxCountDistinct
|
|
8
|
+
from sqlframe.base.functions import array as array
|
|
9
|
+
from sqlframe.base.functions import array_append as array_append
|
|
10
|
+
from sqlframe.base.functions import array_contains as array_contains
|
|
11
|
+
from sqlframe.base.functions import array_distinct as array_distinct
|
|
12
|
+
from sqlframe.base.functions import array_except as array_except
|
|
13
|
+
from sqlframe.base.functions import array_intersect as array_intersect
|
|
14
|
+
from sqlframe.base.functions import array_join as array_join
|
|
15
|
+
from sqlframe.base.functions import array_max as array_max
|
|
16
|
+
from sqlframe.base.functions import array_min as array_min
|
|
17
|
+
from sqlframe.base.functions import array_position as array_position
|
|
18
|
+
from sqlframe.base.functions import array_remove as array_remove
|
|
19
|
+
from sqlframe.base.functions import array_sort as array_sort
|
|
20
|
+
from sqlframe.base.functions import array_union as array_union
|
|
21
|
+
from sqlframe.base.functions import arrays_overlap as arrays_overlap
|
|
22
|
+
from sqlframe.base.functions import asc as asc
|
|
23
|
+
from sqlframe.base.functions import asc_nulls_first as asc_nulls_first
|
|
24
|
+
from sqlframe.base.functions import asc_nulls_last as asc_nulls_last
|
|
25
|
+
from sqlframe.base.functions import ascii as ascii
|
|
26
|
+
from sqlframe.base.functions import asin as asin
|
|
27
|
+
from sqlframe.base.functions import asinh as asinh
|
|
28
|
+
from sqlframe.base.functions import atan as atan
|
|
29
|
+
from sqlframe.base.functions import atan2 as atan2
|
|
30
|
+
from sqlframe.base.functions import atanh as atanh
|
|
31
|
+
from sqlframe.base.functions import avg as avg
|
|
32
|
+
from sqlframe.base.functions import base64 as base64
|
|
33
|
+
from sqlframe.base.functions import bit_length as bit_length
|
|
34
|
+
from sqlframe.base.functions import bitwise_not as bitwise_not
|
|
35
|
+
from sqlframe.base.functions import bitwiseNOT as bitwiseNOT
|
|
36
|
+
from sqlframe.base.functions import bool_and as bool_and
|
|
37
|
+
from sqlframe.base.functions import bool_or as bool_or
|
|
38
|
+
from sqlframe.base.functions import bround as bround
|
|
39
|
+
from sqlframe.base.functions import call_function as call_function
|
|
40
|
+
from sqlframe.base.functions import cbrt as cbrt
|
|
41
|
+
from sqlframe.base.functions import ceil as ceil
|
|
42
|
+
from sqlframe.base.functions import ceiling as ceiling
|
|
43
|
+
from sqlframe.base.functions import char as char
|
|
44
|
+
from sqlframe.base.functions import coalesce as coalesce
|
|
45
|
+
from sqlframe.base.functions import col as col
|
|
46
|
+
from sqlframe.base.functions import collect_list as collect_list
|
|
47
|
+
from sqlframe.base.functions import collect_set as collect_set
|
|
48
|
+
from sqlframe.base.functions import concat as concat
|
|
49
|
+
from sqlframe.base.functions import concat_ws as concat_ws
|
|
50
|
+
from sqlframe.base.functions import contains as contains
|
|
51
|
+
from sqlframe.base.functions import convert_timezone as convert_timezone
|
|
52
|
+
from sqlframe.base.functions import corr as corr
|
|
53
|
+
from sqlframe.base.functions import cos as cos
|
|
54
|
+
from sqlframe.base.functions import cosh as cosh
|
|
55
|
+
from sqlframe.base.functions import cot as cot
|
|
56
|
+
from sqlframe.base.functions import count as count
|
|
57
|
+
from sqlframe.base.functions import count_distinct as count_distinct
|
|
58
|
+
from sqlframe.base.functions import count_if as count_if
|
|
59
|
+
from sqlframe.base.functions import countDistinct as countDistinct
|
|
60
|
+
from sqlframe.base.functions import covar_pop as covar_pop
|
|
61
|
+
from sqlframe.base.functions import covar_samp as covar_samp
|
|
62
|
+
from sqlframe.base.functions import create_map as create_map
|
|
63
|
+
from sqlframe.base.functions import cume_dist as cume_dist
|
|
64
|
+
from sqlframe.base.functions import current_date as current_date
|
|
65
|
+
from sqlframe.base.functions import current_timestamp as current_timestamp
|
|
66
|
+
from sqlframe.base.functions import current_user as current_user
|
|
67
|
+
from sqlframe.base.functions import date_add as date_add
|
|
68
|
+
from sqlframe.base.functions import date_diff as date_diff
|
|
69
|
+
from sqlframe.base.functions import date_format as date_format
|
|
70
|
+
from sqlframe.base.functions import date_sub as date_sub
|
|
71
|
+
from sqlframe.base.functions import date_trunc as date_trunc
|
|
72
|
+
from sqlframe.base.functions import dateadd as dateadd
|
|
73
|
+
from sqlframe.base.functions import datediff as datediff
|
|
74
|
+
from sqlframe.base.functions import dayofmonth as dayofmonth
|
|
75
|
+
from sqlframe.base.functions import dayofweek as dayofweek
|
|
76
|
+
from sqlframe.base.functions import dayofyear as dayofyear
|
|
77
|
+
from sqlframe.base.functions import degrees as degrees
|
|
78
|
+
from sqlframe.base.functions import dense_rank as dense_rank
|
|
79
|
+
from sqlframe.base.functions import desc as desc
|
|
80
|
+
from sqlframe.base.functions import desc_nulls_first as desc_nulls_first
|
|
81
|
+
from sqlframe.base.functions import desc_nulls_last as desc_nulls_last
|
|
82
|
+
from sqlframe.base.functions import e as e
|
|
83
|
+
from sqlframe.base.functions import element_at as element_at
|
|
84
|
+
from sqlframe.base.functions import endswith as endswith
|
|
85
|
+
from sqlframe.base.functions import exp as exp
|
|
86
|
+
from sqlframe.base.functions import explode as explode
|
|
87
|
+
from sqlframe.base.functions import expm1 as expm1
|
|
88
|
+
from sqlframe.base.functions import expr as expr
|
|
89
|
+
from sqlframe.base.functions import extract as extract
|
|
90
|
+
from sqlframe.base.functions import factorial as factorial
|
|
91
|
+
from sqlframe.base.functions import flatten as flatten
|
|
92
|
+
from sqlframe.base.functions import floor as floor
|
|
93
|
+
from sqlframe.base.functions import format_number as format_number
|
|
94
|
+
from sqlframe.base.functions import from_unixtime as from_unixtime
|
|
95
|
+
from sqlframe.base.functions import greatest as greatest
|
|
96
|
+
from sqlframe.base.functions import grouping_id as grouping_id
|
|
97
|
+
from sqlframe.base.functions import hash as hash
|
|
98
|
+
from sqlframe.base.functions import hex as hex
|
|
99
|
+
from sqlframe.base.functions import hour as hour
|
|
100
|
+
from sqlframe.base.functions import ifnull as ifnull
|
|
101
|
+
from sqlframe.base.functions import initcap as initcap
|
|
102
|
+
from sqlframe.base.functions import input_file_name as input_file_name
|
|
103
|
+
from sqlframe.base.functions import instr as instr
|
|
104
|
+
from sqlframe.base.functions import isnan as isnan
|
|
105
|
+
from sqlframe.base.functions import isnull as isnull
|
|
106
|
+
from sqlframe.base.functions import kurtosis as kurtosis
|
|
107
|
+
from sqlframe.base.functions import lag as lag
|
|
108
|
+
from sqlframe.base.functions import last_day as last_day
|
|
109
|
+
from sqlframe.base.functions import lcase as lcase
|
|
110
|
+
from sqlframe.base.functions import lead as lead
|
|
111
|
+
from sqlframe.base.functions import least as least
|
|
112
|
+
from sqlframe.base.functions import left as left
|
|
113
|
+
from sqlframe.base.functions import length as length
|
|
114
|
+
from sqlframe.base.functions import levenshtein as levenshtein
|
|
115
|
+
from sqlframe.base.functions import lit as lit
|
|
116
|
+
from sqlframe.base.functions import ln as ln
|
|
117
|
+
from sqlframe.base.functions import locate as locate
|
|
118
|
+
from sqlframe.base.functions import log as log
|
|
119
|
+
from sqlframe.base.functions import log1p as log1p
|
|
120
|
+
from sqlframe.base.functions import log2 as log2
|
|
121
|
+
from sqlframe.base.functions import log10 as log10
|
|
122
|
+
from sqlframe.base.functions import lower as lower
|
|
123
|
+
from sqlframe.base.functions import lpad as lpad
|
|
124
|
+
from sqlframe.base.functions import ltrim as ltrim
|
|
125
|
+
from sqlframe.base.functions import make_date as make_date
|
|
126
|
+
from sqlframe.base.functions import map_concat as map_concat
|
|
127
|
+
from sqlframe.base.functions import map_keys as map_keys
|
|
128
|
+
from sqlframe.base.functions import max as max
|
|
129
|
+
from sqlframe.base.functions import max_by as max_by
|
|
130
|
+
from sqlframe.base.functions import md5 as md5
|
|
131
|
+
from sqlframe.base.functions import mean as mean
|
|
132
|
+
from sqlframe.base.functions import median as median
|
|
133
|
+
from sqlframe.base.functions import min as min
|
|
134
|
+
from sqlframe.base.functions import min_by as min_by
|
|
135
|
+
from sqlframe.base.functions import minute as minute
|
|
136
|
+
from sqlframe.base.functions import month as month
|
|
137
|
+
from sqlframe.base.functions import months_between as months_between
|
|
138
|
+
from sqlframe.base.functions import nanvl as nanvl
|
|
139
|
+
from sqlframe.base.functions import next_day as next_day
|
|
140
|
+
from sqlframe.base.functions import now as now
|
|
141
|
+
from sqlframe.base.functions import nth_value as nth_value
|
|
142
|
+
from sqlframe.base.functions import ntile as ntile
|
|
143
|
+
from sqlframe.base.functions import nullif as nullif
|
|
144
|
+
from sqlframe.base.functions import nvl as nvl
|
|
145
|
+
from sqlframe.base.functions import nvl2 as nvl2
|
|
146
|
+
from sqlframe.base.functions import octet_length as octet_length
|
|
147
|
+
from sqlframe.base.functions import overlay as overlay
|
|
148
|
+
from sqlframe.base.functions import percent_rank as percent_rank
|
|
149
|
+
from sqlframe.base.functions import percentile as percentile
|
|
150
|
+
from sqlframe.base.functions import percentile_approx as percentile_approx
|
|
151
|
+
from sqlframe.base.functions import posexplode as posexplode
|
|
152
|
+
from sqlframe.base.functions import position as position
|
|
153
|
+
from sqlframe.base.functions import pow as pow
|
|
154
|
+
from sqlframe.base.functions import power as power
|
|
155
|
+
from sqlframe.base.functions import quarter as quarter
|
|
156
|
+
from sqlframe.base.functions import radians as radians
|
|
157
|
+
from sqlframe.base.functions import rand as rand
|
|
158
|
+
from sqlframe.base.functions import rank as rank
|
|
159
|
+
from sqlframe.base.functions import regexp_extract as regexp_extract
|
|
160
|
+
from sqlframe.base.functions import regexp_replace as regexp_replace
|
|
161
|
+
from sqlframe.base.functions import repeat as repeat
|
|
162
|
+
from sqlframe.base.functions import right as right
|
|
163
|
+
from sqlframe.base.functions import rint as rint
|
|
164
|
+
from sqlframe.base.functions import round as round
|
|
165
|
+
from sqlframe.base.functions import row_number as row_number
|
|
166
|
+
from sqlframe.base.functions import rpad as rpad
|
|
167
|
+
from sqlframe.base.functions import rtrim as rtrim
|
|
168
|
+
from sqlframe.base.functions import second as second
|
|
169
|
+
from sqlframe.base.functions import sequence as sequence
|
|
170
|
+
from sqlframe.base.functions import sha as sha
|
|
171
|
+
from sqlframe.base.functions import sha1 as sha1
|
|
172
|
+
from sqlframe.base.functions import sha2 as sha2
|
|
173
|
+
from sqlframe.base.functions import shiftLeft as shiftLeft
|
|
174
|
+
from sqlframe.base.functions import shiftleft as shiftleft
|
|
175
|
+
from sqlframe.base.functions import shiftRight as shiftRight
|
|
176
|
+
from sqlframe.base.functions import shiftright as shiftright
|
|
177
|
+
from sqlframe.base.functions import sign as sign
|
|
178
|
+
from sqlframe.base.functions import signum as signum
|
|
179
|
+
from sqlframe.base.functions import sin as sin
|
|
180
|
+
from sqlframe.base.functions import sinh as sinh
|
|
181
|
+
from sqlframe.base.functions import size as size
|
|
182
|
+
from sqlframe.base.functions import skewness as skewness
|
|
183
|
+
from sqlframe.base.functions import slice as slice
|
|
184
|
+
from sqlframe.base.functions import sort_array as sort_array
|
|
185
|
+
from sqlframe.base.functions import soundex as soundex
|
|
186
|
+
from sqlframe.base.functions import split as split
|
|
187
|
+
from sqlframe.base.functions import split_part as split_part
|
|
188
|
+
from sqlframe.base.functions import sqrt as sqrt
|
|
189
|
+
from sqlframe.base.functions import startswith as startswith
|
|
190
|
+
from sqlframe.base.functions import stddev as stddev
|
|
191
|
+
from sqlframe.base.functions import stddev_pop as stddev_pop
|
|
192
|
+
from sqlframe.base.functions import stddev_samp as stddev_samp
|
|
193
|
+
from sqlframe.base.functions import struct as struct
|
|
194
|
+
from sqlframe.base.functions import substr as substr
|
|
195
|
+
from sqlframe.base.functions import substring as substring
|
|
196
|
+
from sqlframe.base.functions import sum as sum
|
|
197
|
+
from sqlframe.base.functions import sum_distinct as sum_distinct
|
|
198
|
+
from sqlframe.base.functions import sumDistinct as sumDistinct
|
|
199
|
+
from sqlframe.base.functions import tan as tan
|
|
200
|
+
from sqlframe.base.functions import tanh as tanh
|
|
201
|
+
from sqlframe.base.functions import timestamp_seconds as timestamp_seconds
|
|
202
|
+
from sqlframe.base.functions import to_date as to_date
|
|
203
|
+
from sqlframe.base.functions import to_number as to_number
|
|
204
|
+
from sqlframe.base.functions import to_timestamp as to_timestamp
|
|
205
|
+
from sqlframe.base.functions import toDegrees as toDegrees
|
|
206
|
+
from sqlframe.base.functions import toRadians as toRadians
|
|
207
|
+
from sqlframe.base.functions import translate as translate
|
|
208
|
+
from sqlframe.base.functions import trim as trim
|
|
209
|
+
from sqlframe.base.functions import trunc as trunc
|
|
210
|
+
from sqlframe.base.functions import try_to_timestamp as try_to_timestamp
|
|
211
|
+
from sqlframe.base.functions import typeof as typeof
|
|
212
|
+
from sqlframe.base.functions import ucase as ucase
|
|
213
|
+
from sqlframe.base.functions import unbase64 as unbase64
|
|
214
|
+
from sqlframe.base.functions import unhex as unhex
|
|
215
|
+
from sqlframe.base.functions import unix_seconds as unix_seconds
|
|
216
|
+
from sqlframe.base.functions import unix_timestamp as unix_timestamp
|
|
217
|
+
from sqlframe.base.functions import upper as upper
|
|
218
|
+
from sqlframe.base.functions import user as user
|
|
219
|
+
from sqlframe.base.functions import var_pop as var_pop
|
|
220
|
+
from sqlframe.base.functions import var_samp as var_samp
|
|
221
|
+
from sqlframe.base.functions import variance as variance
|
|
222
|
+
from sqlframe.base.functions import weekofyear as weekofyear
|
|
223
|
+
from sqlframe.base.functions import when as when
|
|
224
|
+
from sqlframe.base.functions import year as year
|
sqlframe/snowflake/session.py
CHANGED
|
@@ -78,6 +78,10 @@ class SnowflakeSession(
|
|
|
78
78
|
else:
|
|
79
79
|
self._conn._converter_class = JsonLoadsSnowflakeConverter # type: ignore
|
|
80
80
|
|
|
81
|
+
@property
|
|
82
|
+
def _is_snowflake(self) -> bool:
|
|
83
|
+
return True
|
|
84
|
+
|
|
81
85
|
class Builder(_BaseSession.Builder):
|
|
82
86
|
DEFAULT_EXECUTION_DIALECT = "snowflake"
|
|
83
87
|
|
sqlframe/spark/dataframe.py
CHANGED
|
@@ -7,7 +7,7 @@ from sqlglot import exp
|
|
|
7
7
|
|
|
8
8
|
from sqlframe.base.catalog import Column
|
|
9
9
|
from sqlframe.base.dataframe import (
|
|
10
|
-
|
|
10
|
+
BaseDataFrame,
|
|
11
11
|
_BaseDataFrameNaFunctions,
|
|
12
12
|
_BaseDataFrameStatFunctions,
|
|
13
13
|
)
|
|
@@ -31,7 +31,7 @@ class SparkDataFrameStatFunctions(_BaseDataFrameStatFunctions["SparkDataFrame"])
|
|
|
31
31
|
|
|
32
32
|
class SparkDataFrame(
|
|
33
33
|
NoCachePersistSupportMixin,
|
|
34
|
-
|
|
34
|
+
BaseDataFrame[
|
|
35
35
|
"SparkSession",
|
|
36
36
|
"SparkDataFrameWriter",
|
|
37
37
|
"SparkDataFrameNaFunctions",
|
sqlframe/spark/functions.py
CHANGED
|
@@ -11,12 +11,3 @@ globals().update(
|
|
|
11
11
|
if hasattr(func, "unsupported_engines") and "spark" not in func.unsupported_engines
|
|
12
12
|
}
|
|
13
13
|
)
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
from sqlframe.base.function_alternatives import ( # noqa
|
|
17
|
-
percentile_without_disc as percentile,
|
|
18
|
-
add_months_by_multiplication as add_months,
|
|
19
|
-
arrays_overlap_renamed as arrays_overlap,
|
|
20
|
-
_is_string_using_typeof_string_lcase as _is_string,
|
|
21
|
-
try_element_at_zero_based as try_element_at,
|
|
22
|
-
)
|