sqlglot 27.15.3__py3-none-any.whl → 27.16.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.
- sqlglot/_version.py +2 -2
- sqlglot/dialects/snowflake.py +1 -0
- sqlglot/expressions.py +8 -0
- {sqlglot-27.15.3.dist-info → sqlglot-27.16.0.dist-info}/METADATA +1 -1
- {sqlglot-27.15.3.dist-info → sqlglot-27.16.0.dist-info}/RECORD +8 -8
- {sqlglot-27.15.3.dist-info → sqlglot-27.16.0.dist-info}/WHEEL +0 -0
- {sqlglot-27.15.3.dist-info → sqlglot-27.16.0.dist-info}/licenses/LICENSE +0 -0
- {sqlglot-27.15.3.dist-info → sqlglot-27.16.0.dist-info}/top_level.txt +0 -0
sqlglot/_version.py
CHANGED
|
@@ -28,7 +28,7 @@ version_tuple: VERSION_TUPLE
|
|
|
28
28
|
commit_id: COMMIT_ID
|
|
29
29
|
__commit_id__: COMMIT_ID
|
|
30
30
|
|
|
31
|
-
__version__ = version = '27.
|
|
32
|
-
__version_tuple__ = version_tuple = (27,
|
|
31
|
+
__version__ = version = '27.16.0'
|
|
32
|
+
__version_tuple__ = version_tuple = (27, 16, 0)
|
|
33
33
|
|
|
34
34
|
__commit_id__ = commit_id = None
|
sqlglot/dialects/snowflake.py
CHANGED
sqlglot/expressions.py
CHANGED
|
@@ -5780,6 +5780,11 @@ class AISummarizeAgg(AggFunc):
|
|
|
5780
5780
|
_sql_names = ["AI_SUMMARIZE_AGG"]
|
|
5781
5781
|
|
|
5782
5782
|
|
|
5783
|
+
class AIClassify(Func):
|
|
5784
|
+
arg_types = {"this": True, "categories": True, "config": False}
|
|
5785
|
+
_sql_names = ["AI_CLASSIFY"]
|
|
5786
|
+
|
|
5787
|
+
|
|
5783
5788
|
class ArrayAll(Func):
|
|
5784
5789
|
arg_types = {"this": True, "expression": True}
|
|
5785
5790
|
|
|
@@ -8312,6 +8317,9 @@ def merge(
|
|
|
8312
8317
|
if returning:
|
|
8313
8318
|
merge = merge.returning(returning, dialect=dialect, copy=False, **opts)
|
|
8314
8319
|
|
|
8320
|
+
if isinstance(using_clause := merge.args.get("using"), Alias):
|
|
8321
|
+
using_clause.replace(alias_(using_clause.this, using_clause.args["alias"], table=True))
|
|
8322
|
+
|
|
8315
8323
|
return merge
|
|
8316
8324
|
|
|
8317
8325
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
sqlglot/__init__.py,sha256=za08rtdPh2v7dOpGdNomttlIVGgTrKja7rPd6sQwaTg,5391
|
|
2
2
|
sqlglot/__main__.py,sha256=022c173KqxsiABWTEpUIq_tJUxuNiW7a7ABsxBXqvu8,2069
|
|
3
3
|
sqlglot/_typing.py,sha256=-1HPyr3w5COlSJWqlgt8jhFk2dyMvBuvVBqIX1wyVCM,642
|
|
4
|
-
sqlglot/_version.py,sha256=
|
|
4
|
+
sqlglot/_version.py,sha256=qswF0knG_fOMPgCyMoAOyYScj4nuiFDhNqEQE2APOE4,708
|
|
5
5
|
sqlglot/diff.py,sha256=PtOllQMQa1Sw1-V2Y8eypmDqGujXYPaTOp_WLsWkAWk,17314
|
|
6
6
|
sqlglot/errors.py,sha256=QNKMr-pzLUDR-tuMmn_GK6iMHUIVdb_YSJ_BhGEvuso,2126
|
|
7
|
-
sqlglot/expressions.py,sha256=
|
|
7
|
+
sqlglot/expressions.py,sha256=Qp0u8vmU9M7AV-iAqjd_0EQJQsO3VjyyHvZ4sQfQZdo,256153
|
|
8
8
|
sqlglot/generator.py,sha256=Twp2rdS57BxztRQx9z6d_e-GOAd4hW0UeSnywiIrbws,225487
|
|
9
9
|
sqlglot/helper.py,sha256=9nZjFVRBtMKFC3EdzpDQ6jkazFO19po6BF8xHiNGZIo,15111
|
|
10
10
|
sqlglot/jsonpath.py,sha256=SQgaxzaEYBN7At9dkTK4N1Spk6xHxvHL6QtCIP6iM30,7905
|
|
@@ -42,7 +42,7 @@ sqlglot/dialects/prql.py,sha256=fwN-SPEGx-drwf1K0U2MByN-PkW3C_rOgQ3xeJeychg,7908
|
|
|
42
42
|
sqlglot/dialects/redshift.py,sha256=FIwtP3yEg-way9pa32kxCJc6IaFkHVIvgYKZA-Ilmi0,15919
|
|
43
43
|
sqlglot/dialects/risingwave.py,sha256=BqWwW1iT_OIVMwfRamaww79snnBwIgCfr22Go-ggO68,3289
|
|
44
44
|
sqlglot/dialects/singlestore.py,sha256=0QqNYOucNklPQuyeGcsisLI97qPGx_RfWKOFarJz2qw,61711
|
|
45
|
-
sqlglot/dialects/snowflake.py,sha256=
|
|
45
|
+
sqlglot/dialects/snowflake.py,sha256=VcQxRiy7KV7EtOp4IXe9Vx7qEjqf4ltpRKV2xAYNZbs,76311
|
|
46
46
|
sqlglot/dialects/spark.py,sha256=PzyhkelDzbCMgJ3RVHD6yyzLIFp9NdZfwVas5IymowM,10147
|
|
47
47
|
sqlglot/dialects/spark2.py,sha256=qz36FT9k4iuiqboRpyG4VpKGkPR0P2fifmqgZ9gNUEU,14851
|
|
48
48
|
sqlglot/dialects/sqlite.py,sha256=zzXEbnaLjJeg6hPLHricjpfSkuf8tpXECnjcHtoqIbw,13263
|
|
@@ -76,8 +76,8 @@ sqlglot/optimizer/qualify_tables.py,sha256=dA4ZazL7ShQh2JgBwpHuG-4c5lBw1TNzCnuN7
|
|
|
76
76
|
sqlglot/optimizer/scope.py,sha256=UOTrbwqcTc5iRQf0WStgYWXpE24w6riZy-tJYA18yTw,31229
|
|
77
77
|
sqlglot/optimizer/simplify.py,sha256=-_yus42OYwqjQ9a2TSGhtG2G0pSkInUry1z7hEMz2pY,51062
|
|
78
78
|
sqlglot/optimizer/unnest_subqueries.py,sha256=kzWUVDlxs8z9nmRx-8U-pHXPtVZhEIwkKqmKhr2QLvc,10908
|
|
79
|
-
sqlglot-27.
|
|
80
|
-
sqlglot-27.
|
|
81
|
-
sqlglot-27.
|
|
82
|
-
sqlglot-27.
|
|
83
|
-
sqlglot-27.
|
|
79
|
+
sqlglot-27.16.0.dist-info/licenses/LICENSE,sha256=p1Yk0B4oa0l8Rh-_dYyy75d8spjPd_vTloXfz4FWxys,1065
|
|
80
|
+
sqlglot-27.16.0.dist-info/METADATA,sha256=j7MzjT2LHnGJbieQB0w5sQFr7CBQwqbEKaSWjwSXOzA,20682
|
|
81
|
+
sqlglot-27.16.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
82
|
+
sqlglot-27.16.0.dist-info/top_level.txt,sha256=5kRskCGA_gVADF9rSfSzPdLHXqvfMusDYeHePfNY2nQ,8
|
|
83
|
+
sqlglot-27.16.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|