Commit graph

1378 commits

Author SHA1 Message Date
Xuanwo
0a941b87dc
chore: Add asf.yaml (#1463)
Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>
2024-10-09 13:01:06 -04:00
David Caldwell
c01e054fd8
Add "DROP TYPE" support. (#1461) 2024-10-09 09:59:00 -04:00
hulk
7905fb4905
Add support of EXPLAIN QUERY PLAN syntax for SQLite dialect (#1458) 2024-10-08 12:27:07 -04:00
David Caldwell
ac956dc963
Add support for ASC and DESC in CREATE TABLE column constraints for SQLite. (#1462) 2024-10-08 12:26:32 -04:00
nucccc
8badcdc200
Add SQLite "ON CONFLICT" column option in CREATE TABLE statements (#1442)
Co-authored-by: hulk <hulk.website@gmail.com>
Co-authored-by: Ifeanyi Ubah <ify1992@yahoo.com>
2024-10-07 16:20:55 -04:00
Aleksei Piianin
84348d483e
Snowflake: support of views column comment (#1441) 2024-10-07 16:20:23 -04:00
Maxwell Knight
8ccb87a835
added ability to parse extension to parse_comment inside postgres dialect (#1451) 2024-10-04 16:07:26 -04:00
Yoav Cohen
e849f7f143
Add support for the LIKE ANY and ILIKE ANY pattern-matching condition (#1456) 2024-10-04 16:03:38 -04:00
hulk
32a126b27c
Fix always uses CommentDef::WithoutEq while parsing the inline comment (#1453) 2024-10-04 16:03:02 -04:00
Joshua Warner
1e0460a7df
Expand handling of LIMIT 1, 2 handling to include sqlite (#1447) 2024-09-30 13:40:07 -04:00
Andrew Lamb
ce2686a169
Add a note discouraging new use of dialect_of macro (#1448) 2024-09-30 07:08:13 -04:00
hulk
51cbd5a3e6
Implements ALTER POLICY syntax for PostgreSQL (#1446)
Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>
2024-09-29 06:17:31 -04:00
Heran Lin
73dc8a352d
Support DROP DATABASE (#1443) 2024-09-29 06:17:19 -04:00
hulk
2af981e4e6
Implements DROP POLICY syntax for PostgreSQL (#1445) 2024-09-29 05:58:34 -04:00
Eason
08fc6d3813
make parse_expr_with_alias public (#1444)
Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>
Co-authored-by: Ifeanyi Ubah <ify1992@yahoo.com>
2024-09-29 05:58:00 -04:00
hulk
8a534c0e27
Implements CREATE POLICY syntax for PostgreSQL (#1440) 2024-09-25 13:32:04 -04:00
Andrew Lamb
affe8b5498
Fix codestyle CI check (#1438) 2024-09-22 07:32:37 -04:00
Thomas Dagenais
2403f79f55
Some small optimizations (#1424) 2024-09-21 06:25:14 -04:00
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