Commit graph

55 commits

Author SHA1 Message Date
Ifeanyi Ubah
5f2b5fe7be
Fix clippy lints on 1.88.0 (#1910) 2025-06-27 14:21:17 -04:00
Chen Chongchen
e2b1ae36e9
feat: Hive: support SORT BY direction (#1873) 2025-06-06 09:11:44 +02:00
benrsatori
728645fb31
Add all missing table options to be handled in any order (#1747)
Co-authored-by: Tomer Shani <tomer.shani@satoricyber.com>
2025-05-02 15:16:59 +02:00
Andrew Harper
2eb1e7bdd4
Add CREATE FUNCTION support for SQL Server (#1808) 2025-04-23 18:10:57 +02:00
Mohamed Abdeen
3a8a3bb7a5
SET statements: scope modifier for multiple assignments (#1772) 2025-03-22 06:38:00 +01:00
Mohamed Abdeen
f487cbe004
Add GLOBAL context/modifier to SET statements (#1767) 2025-03-20 06:52:56 +01:00
Mohamed Abdeen
85f855150f
SET with a list of comma separated assignments (#1757) 2025-03-12 21:02:39 +01:00
Ophir LOJKINE
c335c8883b
Store spans for Value expressions (#1738) 2025-02-25 07:33:57 +01:00
SiLe Zhou
1f1c0693da
Add support for ORDER BY ALL (#1724) 2025-02-22 06:52:07 +01:00
AvivDavid-Satori
f7b0812b01
Add support for mysql table hints (#1675) 2025-01-28 09:41:03 +01:00
Ayman Elkfrawy
211b15e790
Enhance object name path segments (#1539) 2025-01-26 15:13:51 +01:00
Yoav Cohen
316bb14135
Add support for TABLESAMPLE (#1580) 2024-12-15 10:40:25 +01:00
Ifeanyi Ubah
a13f8c6b93
Add support for ODBC functions (#1585) 2024-12-11 17:31:55 -05:00
Philip Cristiano
e16b24679a
Encapsulate CreateFunction (#1573) 2024-12-02 12:45:14 -05:00
Yoav Cohen
62fa8604af
PartiQL queries in Redshift (#1534) 2024-11-23 07:14:38 -05:00
tomershaniii
8e0d26abb3
fix for maybe_parse preventing parser from erroring on recursion limit (#1464) 2024-10-21 15:41:34 -04:00
Andrew Lamb
9934f3d931
Update to ASF header / add when missing (#1437) 2024-09-21 06:23:28 -04:00
hulk
6ba6068944
Fix Hive table comment should be after table column definitions (#1413) 2024-09-10 15:43:35 -04:00
hulk
7b4ac7ca9f
Add support of parsing CLUSTERED BY clause for Hive (#1397) 2024-09-01 07:21:26 -04:00
Kacper Muda
7282ce22f9
feat: support different USE statement syntaxes (#1387) 2024-08-23 11:42:51 -04:00
Andrew Lamb
dd78084ca0
fix: only require DESCRIBE TABLE for Snowflake and ClickHouse dialect (#1386) 2024-08-16 05:54:58 -04:00
hulk
9108bffc9a
Add support of table function WITH ORDINALITY modifier for Postgre Parser (#1337) 2024-07-09 17:43:22 -04:00
hulk
a685e11993
Support parametric arguments to FUNCTION for ClickHouse dialect (#1315)
Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>
2024-06-23 07:36:05 -04:00
Lorrens Pantelis
f16c1afed0
Improve error messages with additional colons (#1319) 2024-06-21 18:26:23 -04:00
Ifeanyi Ubah
792e389baa
Support CREATE FUNCTION for BigQuery (#1253) 2024-05-30 12:18:41 -04:00
Ifeanyi Ubah
eb36bd7138
Support multiple SET variables (#1252) 2024-05-07 12:51:39 -04:00
Joey Hain
a14faa36bb
Consolidate representation of function calls, remove AggregateExpressionWithFilter, ArraySubquery, ListAgg and ArrayAgg (#1247)
Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>
2024-05-03 14:46:03 -04:00
Joey Hain
2490034948
Initial Databricks SQL dialect (#1220) 2024-04-26 14:01:09 -04:00
Ifeanyi Ubah
d2c2b15f9e
Add support for quoted string backslash escaping (#1177) 2024-04-21 09:07:56 -04:00
Jonathan Lehto
ef4668075b
Support EXPLAIN / DESCR / DESCRIBE [FORMATTED | EXTENDED] (#1156)
Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>
2024-03-01 14:07:04 -05:00
Jonathan Lehto
991dbab755
Support ALTER TABLE ... SET LOCATION (#1154)
Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>
2024-03-01 14:05:05 -05:00
Jonathan Lehto
6f090e5547
adding delimited (#1155) 2024-03-01 13:55:50 -05:00
Jonathan Lehto
fb7d4d40cc
Support serdeproperties for CREATE TABLE with HIVE (#1152)
Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>
2024-03-01 13:49:41 -05:00
Andrew Lamb
9db9d22480
Support postgres style CREATE FUNCTION in GenericDialect (#1159) 2024-03-01 13:43:29 -05:00
yuval-illumex
b89edaa98b
Support IGNORE|RESPECT NULLs clause in window functions (#998)
Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>
2023-10-24 09:45:59 -04:00
Chris A
004a8dc5dd
Support multiple PARTITION statements in ALTER TABLE ADD statement (#1011)
Co-authored-by: Chris A <chrisa@indeed.com>
Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>
2023-10-24 07:19:01 -04:00
Chris A
9832adb376
Support "with" identifiers surrounded by backticks in GenericDialect (#1010) 2023-10-24 06:33:51 -04:00
Ophir LOJKINE
ce62fe6d27
Support FILTER in over clause (#1007)
Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>
2023-10-23 18:06:39 -04:00
chunshao.rcs
f6e4be4c15
Support mysql partition to table selection (#959)
Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>
2023-09-14 14:21:47 -04:00
Marko Grujic
1ea8858575
Table time travel clause support, add visit_table_factor to Visitor (#951) 2023-08-22 06:06:32 -04:00
Mustafa Akur
1b86abebe2
Add support for first, last aggregate function parsing (#882)
* Add order by parsing to functions

* Fix doc error

* minor changes
2023-05-18 14:59:14 -04:00
Aljaž Mur Eržen
0113bbd924
Test trailing commas (#859)
* test: add tests for trailing commas

* tweaks
2023-05-01 08:31:17 -04:00
Andrew Lamb
7f4c9132d7
Fix table alias parsing regression in 0.31.0 by backing out redshift column definition list (#827)
* Fix table alias parsing regression

* Revert "Support redshift's columns definition list for system information functions (#769)"

This reverts commit c35dcc93a7.
2023-03-06 11:43:22 -05:00
Maciej Skrzypkowski
c35dcc93a7
Support redshift's columns definition list for system information functions (#769)
* parsing of redshift's column definition list for
pg_get_late_binding_view_cols
pg_get_cols
pg_get_grantee_by_iam_role
pg_get_iam_role_by_user

* Renamed ColsDefinition to TableAliasDefinition

added generic dialect

* Tests fixed

* Visitor for IdentPair

* Parsing redshift table alias based on indentifier and
parentheses instead of function name

* fix clippy

---------

Co-authored-by: Maciej Skrzypkowski <maciej.skrzypkowski@satoricyber.com>
Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>
2023-02-17 14:04:59 -05:00
zidaye
6c545195e1
support create function definition with $$ (#755)
* support create function definition using '2700775'

* fix warn
2022-12-13 17:15:33 -05:00
Runji Wang
5b53df97c4
Support postgres CREATE FUNCTION (#722)
* support basic pg CREATE FUNCTION

Signed-off-by: Runji Wang <wangrunji0408@163.com>

* support function argument

Signed-off-by: Runji Wang <wangrunji0408@163.com>

* fix display and use verify in test

Signed-off-by: Runji Wang <wangrunji0408@163.com>

* support OR REPLACE

Signed-off-by: Runji Wang <wangrunji0408@163.com>

* fix compile error in bigdecimal

Signed-off-by: Runji Wang <wangrunji0408@163.com>

* unify all `CreateFunctionBody` to a structure

Signed-off-by: Runji Wang <wangrunji0408@163.com>

Signed-off-by: Runji Wang <wangrunji0408@163.com>
2022-12-01 16:08:49 -05:00
SuperBo
87b4a168cb
Parse ARRAY_AGG for Bigquery and Snowflake (#662) 2022-11-11 15:25:07 -05:00
omer-shtivi
0428ac742b
Add MySql, BigQuery to all dialects (#697)
* Add MySql, BigQuery to all dialects

* move unsupported on mysql from common
2022-11-07 15:32:47 -05:00
AugustoFKL
1b3778e2d5
feature!: added NUMERIC and DEC ANSI data types, and now the DECIMAL (#695)
type prints DECIMAL instead of NUMERIC.

BREAKING CHANGE: enum DATA TYPE variants changed, changing any API that
uses it.
2022-10-31 15:22:34 -04:00
Andy Grove
303f80f168
Add support for aggregate expressions with filters (#585) 2022-09-08 13:08:45 -06:00