Commit graph

1360 commits

Author SHA1 Message Date
Andrew Lamb
9934f3d931
Update to ASF header / add when missing (#1437) 2024-09-21 06:23:28 -04:00
Aleksei Piianin
fb42425d51
MS SQL Server: add support for IDENTITY column option (#1432) 2024-09-20 12:44:24 -04:00
Fischer
71318df8b9
chore: remove redundant punctuation (#1434) 2024-09-20 12:39:17 -04:00
Siyuan Huang
04a53e5753
feat: support explain options (#1426) 2024-09-19 11:28:02 -04:00
hulk
1c505ce736
Allow to use ON CLUSTER cluster_name in TRUNCATE syntax (#1428) 2024-09-19 06:56:00 -04:00
Agaev Guseyn
246838a69f
Fix parsing of negative values (#1419)
Co-authored-by: Agaev Huseyn <h.agaev@vkteam.ru>
2024-09-16 17:04:21 -04:00
Andrew Lamb
b9f6784714 chore: Release sqlparser version 0.51.0 2024-09-11 14:19:35 -04:00
Andrew Lamb
70dbb11557
CHANGELOG for 0.51.0 (#1422) 2024-09-11 14:17:03 -04:00
Simon Sawert
b9e7754886
feat: Add support for MSSQL table options (#1414) 2024-09-11 13:09:41 -04:00
Andrew Lamb
cb0c511b05
Add a test showing how negative constants are parsed (#1421) 2024-09-10 16:19:13 -04:00
Marko Milenković
8dbcbb3c27
minor: Add databricks dialect to dialect_from_str (#1416)
Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>
2024-09-10 15:56:26 -04:00
gstvg
8305c5d416
minor: Implement common traits for OneOrManyWithParens (#1368) 2024-09-10 15:48:42 -04:00
hulk
6ba6068944
Fix Hive table comment should be after table column definitions (#1413) 2024-09-10 15:43:35 -04:00
hulk
a7b49b5072
Add support of DROP|CLEAR|MATERIALIZE PROJECTION syntax for ClickHouse (#1417) 2024-09-10 15:26:07 -04:00
Emil Ejbyfeldt
4875dadbf5
fix: Fix stack overflow in parse_subexpr (#1410) 2024-09-06 10:17:20 -04:00
Samuel Colvin
aa714e3447
Fix INTERVAL parsing to support expressions and units via dialect (#1398) 2024-09-06 10:16:09 -04:00
Toby Hede
1bed87a8ea
Suppor postgres TRUNCATE syntax (#1406) 2024-09-05 11:13:35 -04:00
张林伟
4d52ee7280
Support create index with clause (#1389)
Co-authored-by: Ifeanyi Ubah <ify1992@yahoo.com>
Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>
2024-09-01 07:38:20 -04:00
Samuel Colvin
d64beea4d4
cleanup parse_statement (#1407) 2024-09-01 07:23:29 -04:00
hulk
df86f259ce
Fix identifier starts with $ should be regarded as a placeholder in SQLite (#1402) 2024-09-01 07:21:59 -04:00
hulk
7b4ac7ca9f
Add support of parsing CLUSTERED BY clause for Hive (#1397) 2024-09-01 07:21:26 -04:00
Samuel Colvin
222b7d127a
allow DateTimeField::Custom with EXTRACT in Postgres (#1394) 2024-08-26 15:56:57 -04:00
Kacper Muda
7282ce22f9
feat: support different USE statement syntaxes (#1387) 2024-08-23 11:42:51 -04:00
hulk
19e694aa91
Support ADD PROJECTION syntax for ClickHouse (#1390) 2024-08-22 12:33:44 -04:00
Andrew Lamb
11a6e6ff7b chore: Release sqlparser version 0.50.0 2024-08-16 06:05:54 -04:00
Andrew Lamb
ee2e2634ed
CHANGELOG for 0.50.0 (#1383) 2024-08-16 06:05:04 -04:00
Andrew Lamb
dd78084ca0
fix: only require DESCRIBE TABLE for Snowflake and ClickHouse dialect (#1386) 2024-08-16 05:54:58 -04:00
Jay Zhan
8c4d30bb6d
Support DuckDB struct syntax and support list of struct syntax (#1372)
Signed-off-by: jayzhan211 <jayzhan211@gmail.com>
Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>
Co-authored-by: Ifeanyi Ubah <ify1992@yahoo.com>
2024-08-15 09:02:42 -04:00
Samuel Colvin
fab834dca3
rename get_next_precedence_full to get_next_precedence_default (#1378) 2024-08-14 11:47:28 -04:00
Samuel Colvin
f2235305f4
Simple custom lexical precedence in PostgreSQL dialect (#1379) 2024-08-14 11:42:40 -04:00
hulk
6a11a67fcd
Add support of FREEZE|UNFREEZE PARTITION syntax for ClickHouse (#1380) 2024-08-14 11:29:27 -04:00
Seve Martinez
c2f46ae07b
adding support for scale in CEIL and FLOOR functions (#1377) 2024-08-14 09:11:40 -04:00
Luca Cappelletti
b072ce2589
Adding support for parsing CREATE TRIGGER and DROP TRIGGER statements (#1352)
Co-authored-by: hulk <hulk.website@gmail.com>
Co-authored-by: Ifeanyi Ubah <ify1992@yahoo.com>
Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>
2024-08-14 09:11:16 -04:00
Seve Martinez
f5b818e74b
supporting snowflake extract syntax (#1374)
Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>
2024-08-13 08:56:18 -04:00
hulk
ca5262c13f
Use the local GitHub Action to replace setup-rust-action (#1371) 2024-08-13 06:59:19 -04:00
Andrew Lamb
1e209d8741
Simplify arrow_cast tests (#1367) 2024-08-08 16:58:31 -04:00
hulk
68a04cd402
Update version of GitHub Actions (#1363) 2024-08-08 16:57:21 -04:00
Jesse
2d4b9b3e56
Make Parser::maybe_parse pub (#1364) 2024-08-07 14:30:01 -04:00
hulk
dfb8b81630
Add support of ATTACH/DETACH PARTITION for ClickHouse (#1362) 2024-08-07 14:02:11 -04:00
Andrew Lamb
da484c57c4
Improve comments on Dialect (#1366) 2024-08-06 08:23:07 -04:00
Samuel Colvin
a5480ae498
Support Dialect level precedence, update Postgres Dialect to match Postgres (#1360) 2024-08-06 07:49:37 -04:00
Jax Liu
8f8c96f87f
Support parsing empty map literal syntax for DuckDB and Genric (#1361) 2024-08-04 07:47:32 -04:00
Jesse
d49acc67b1
Parse SETTINGS clause for ClickHouse table-valued functions (#1358) 2024-08-01 17:28:15 -04:00
hulk
a692ba5fd1
Add support of parsing OPTIMIZE TABLE statement for ClickHouse (#1359) 2024-08-01 17:20:56 -04:00
hulk
cc13841a37
Add support of parsing ON CLUSTER in ALTER TABLE for ClickHouse (#1342) 2024-07-30 16:31:42 -04:00
hulk
f96658006f
Allow to use the GLOBAL keyword before the join operator (#1353) 2024-07-30 16:30:46 -04:00
Ophir LOJKINE
bc15f7b4ce
Support for postgres String Constants with Unicode Escapes (#1355) 2024-07-29 17:18:16 -04:00
Joey Hain
c3ba2f33c6
Snowflake: support position with normal function call syntax (#1341)
Co-authored-by: Ifeanyi Ubah <ify1992@yahoo.com>
2024-07-29 17:17:11 -04:00
hulk
7fdb2ec5d1
Allow to use the TABLE keyword in DESC|DESCRIBE|EXPLAIN TABLE statement (#1351) 2024-07-29 17:16:29 -04:00
Ophir LOJKINE
547d82f07d
fix CI clippy 1.80 warnings (#1357) 2024-07-29 08:49:05 -04:00