sqlglot 27.15.3__py3-none-any.whl → 27.16.1__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/parser.py +1 -1
- {sqlglot-27.15.3.dist-info → sqlglot-27.16.1.dist-info}/METADATA +1 -1
- {sqlglot-27.15.3.dist-info → sqlglot-27.16.1.dist-info}/RECORD +9 -9
- {sqlglot-27.15.3.dist-info → sqlglot-27.16.1.dist-info}/WHEEL +0 -0
- {sqlglot-27.15.3.dist-info → sqlglot-27.16.1.dist-info}/licenses/LICENSE +0 -0
- {sqlglot-27.15.3.dist-info → sqlglot-27.16.1.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.1'
|
|
32
|
+
__version_tuple__ = version_tuple = (27, 16, 1)
|
|
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
|
|
sqlglot/parser.py
CHANGED
|
@@ -5100,7 +5100,7 @@ class Parser(metaclass=_Parser):
|
|
|
5100
5100
|
isinstance(this, exp.Column)
|
|
5101
5101
|
and not this.table
|
|
5102
5102
|
and not this.this.quoted
|
|
5103
|
-
and this.name.upper()
|
|
5103
|
+
and this.name.upper() in ("IS", "ROWS")
|
|
5104
5104
|
):
|
|
5105
5105
|
self._retreat(index)
|
|
5106
5106
|
return None
|
|
@@ -1,15 +1,15 @@
|
|
|
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=R4L7DKquG30zvoncCqswYPDDXUDlkHrBTW_PhM97W7Y,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
|
|
11
11
|
sqlglot/lineage.py,sha256=Qj5ykuDNcATppb9vOjoIKBqRVLbu3OMPiZk9f3iyv40,15312
|
|
12
|
-
sqlglot/parser.py,sha256=
|
|
12
|
+
sqlglot/parser.py,sha256=jJIFQ-TwsqAjKoaukEswzvf5qBVAUEFgeDmiJnqcyO0,335392
|
|
13
13
|
sqlglot/planner.py,sha256=ql7Li-bWJRcyXzNaZy_n6bQ6B2ZfunEIB8Ztv2xaxq4,14634
|
|
14
14
|
sqlglot/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
15
15
|
sqlglot/schema.py,sha256=13H2qKQs27EKdTpDLOvcNnSTDAUbYNKjWtJs4aQCSOA,20509
|
|
@@ -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.1.dist-info/licenses/LICENSE,sha256=p1Yk0B4oa0l8Rh-_dYyy75d8spjPd_vTloXfz4FWxys,1065
|
|
80
|
+
sqlglot-27.16.1.dist-info/METADATA,sha256=f2lwZqy5eEx73dnt1FuStzReQ0YEO3U86hpnitBmlns,20682
|
|
81
|
+
sqlglot-27.16.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
82
|
+
sqlglot-27.16.1.dist-info/top_level.txt,sha256=5kRskCGA_gVADF9rSfSzPdLHXqvfMusDYeHePfNY2nQ,8
|
|
83
|
+
sqlglot-27.16.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|