Commit graph

1809 commits

Author SHA1 Message Date
Luca Cappelletti
df0b9f2c1a
Merge branch 'main' into no-whitespace-parser 2025-11-26 11:33:03 +01:00
Luca Cappelletti
4beea9a4bc
Support PostgreSQL C Functions with Multiple AS Parameters (#2095)
Some checks failed
license / Release Audit Tool (RAT) (push) Has been cancelled
Rust / codestyle (push) Has been cancelled
Rust / lint (push) Has been cancelled
Rust / benchmark-lint (push) Has been cancelled
Rust / compile (push) Has been cancelled
Rust / docs (push) Has been cancelled
Rust / test (stable) (push) Has been cancelled
Rust / compile-no-std (push) Has been cancelled
Rust / test (beta) (push) Has been cancelled
Rust / test (nightly) (push) Has been cancelled
Co-authored-by: Ifeanyi Ubah <ify1992@yahoo.com>
2025-11-26 10:21:57 +00:00
Michael Victor Zink
e380494eb0
Only set hive_formats on CreateTable if formats are present (#2105) 2025-11-26 09:52:23 +00:00
Luca Cappelletti
2a2abc8dad
Added support for DROP OPERATOR syntax (#2102)
Co-authored-by: Ifeanyi Ubah <ify1992@yahoo.com>
2025-11-26 09:51:11 +00:00
Luca Cappelletti
2f8d5f6072
Merge branch 'main' into no-whitespace-parser 2025-11-26 08:48:17 +01:00
xitep
2ceae006a4
Preserve optional AS keyword in aliases (#2103)
Some checks are pending
license / Release Audit Tool (RAT) (push) Waiting to run
Rust / codestyle (push) Waiting to run
Rust / lint (push) Waiting to run
Rust / benchmark-lint (push) Waiting to run
Rust / compile (push) Waiting to run
Rust / docs (push) Waiting to run
Rust / compile-no-std (push) Waiting to run
Rust / test (beta) (push) Waiting to run
Rust / test (nightly) (push) Waiting to run
Rust / test (stable) (push) Waiting to run
2025-11-25 15:54:42 +00:00
xitep
2b8e99c665
impl Spanned for MERGE statements (#2100)
Some checks failed
license / Release Audit Tool (RAT) (push) Has been cancelled
Rust / codestyle (push) Has been cancelled
Rust / lint (push) Has been cancelled
Rust / benchmark-lint (push) Has been cancelled
Rust / compile (push) Has been cancelled
Rust / docs (push) Has been cancelled
Rust / compile-no-std (push) Has been cancelled
Rust / test (beta) (push) Has been cancelled
Rust / test (nightly) (push) Has been cancelled
Rust / test (stable) (push) Has been cancelled
2025-11-22 14:55:08 +00:00
Luca Cappelletti
03a884d6f8
Merge branch 'main' into no-whitespace-parser 2025-11-19 15:26:11 +01:00
Luca Cappelletti
1114d6a2bc
Add PostgreSQL Operator DDL Support (#2096)
Some checks failed
license / Release Audit Tool (RAT) (push) Has been cancelled
Rust / codestyle (push) Has been cancelled
Rust / lint (push) Has been cancelled
Rust / benchmark-lint (push) Has been cancelled
Rust / compile (push) Has been cancelled
Rust / docs (push) Has been cancelled
Rust / compile-no-std (push) Has been cancelled
Rust / test (beta) (push) Has been cancelled
Rust / test (nightly) (push) Has been cancelled
Rust / test (stable) (push) Has been cancelled
Co-authored-by: Ifeanyi Ubah <ify1992@yahoo.com>
2025-11-19 14:19:39 +00:00
Luca
38a7c6ba9d Removed CSV validation 2025-11-18 13:06:35 +01:00
Luca Cappelletti
48c476e62d
Merge branch 'main' into no-whitespace-parser 2025-11-18 12:52:25 +01:00
r1b
1198c1ad11
fix: parse error on unnamed arg with default syntax (#2091)
Some checks are pending
license / Release Audit Tool (RAT) (push) Waiting to run
Rust / codestyle (push) Waiting to run
Rust / lint (push) Waiting to run
Rust / benchmark-lint (push) Waiting to run
Rust / compile (push) Waiting to run
Rust / docs (push) Waiting to run
Rust / compile-no-std (push) Waiting to run
Rust / test (beta) (push) Waiting to run
Rust / test (nightly) (push) Waiting to run
Rust / test (stable) (push) Waiting to run
2025-11-18 09:41:48 +00:00
Luca
f024efc070 Fixed the std corner case 2025-11-14 17:00:24 +01:00
Luca
9cd94c5f1b Merge branch 'main' into no-whitespace-parser 2025-11-14 16:55:25 +01:00
Luca
2957be4af1 Improved dialect method documentation 2025-11-14 16:45:10 +01:00
Luca
25b5e3e7fc Refactored CSV parsing 2025-11-14 16:29:19 +01:00
Luca Cappelletti
110271b399
Update tests/sqlparser_common.rs
Co-authored-by: Ifeanyi Ubah <ify1992@yahoo.com>
2025-11-14 15:36:45 +01:00
Luca Cappelletti
586ec01b0c
Update src/parser/mod.rs
Co-authored-by: Ifeanyi Ubah <ify1992@yahoo.com>
2025-11-14 15:35:27 +01:00
xitep
4f79997c8e
Include DML keyword in statement span (#2090)
Some checks failed
license / Release Audit Tool (RAT) (push) Has been cancelled
Rust / codestyle (push) Has been cancelled
Rust / lint (push) Has been cancelled
Rust / benchmark-lint (push) Has been cancelled
Rust / compile (push) Has been cancelled
Rust / docs (push) Has been cancelled
Rust / compile-no-std (push) Has been cancelled
Rust / test (beta) (push) Has been cancelled
Rust / test (nightly) (push) Has been cancelled
Rust / test (stable) (push) Has been cancelled
2025-11-13 09:27:58 +00:00
Luca Cappelletti
78be8b178b
Complete PostgreSQL CREATE TYPE Support (#2094)
Co-authored-by: Ifeanyi Ubah <ify1992@yahoo.com>
2025-11-13 09:25:27 +00:00
Christopher Watford
a00d5cd967
feat: Add support for SET SESSION AUTHORIZATION #2086 (#2087)
Some checks are pending
license / Release Audit Tool (RAT) (push) Waiting to run
Rust / codestyle (push) Waiting to run
Rust / lint (push) Waiting to run
Rust / benchmark-lint (push) Waiting to run
Rust / compile (push) Waiting to run
Rust / docs (push) Waiting to run
Rust / compile-no-std (push) Waiting to run
Rust / test (beta) (push) Waiting to run
Rust / test (nightly) (push) Waiting to run
Rust / test (stable) (push) Waiting to run
2025-11-12 09:52:15 +00:00
etgarperets
f69407b344
Add support for INSERT INTO VALUE (#2085)
Some checks are pending
license / Release Audit Tool (RAT) (push) Waiting to run
Rust / codestyle (push) Waiting to run
Rust / lint (push) Waiting to run
Rust / benchmark-lint (push) Waiting to run
Rust / compile (push) Waiting to run
Rust / docs (push) Waiting to run
Rust / compile-no-std (push) Waiting to run
Rust / test (beta) (push) Waiting to run
Rust / test (nightly) (push) Waiting to run
Rust / test (stable) (push) Waiting to run
2025-11-11 08:10:42 +00:00
Andriy Romanov
c439ee9419
Add snowflake dynamic table parsing (#2083) 2025-11-11 08:10:37 +00:00
Christopher Watford
eabde4b41e
feat: Add RESET to the base dialect #2078 (#2079) 2025-11-11 08:10:32 +00:00
Alexander Beedie
308a7231bc
Make BitwiseNot ("~") available for all dialects, not just PostgreSQL (#2081)
Some checks failed
license / Release Audit Tool (RAT) (push) Has been cancelled
Rust / codestyle (push) Has been cancelled
Rust / lint (push) Has been cancelled
Rust / benchmark-lint (push) Has been cancelled
Rust / compile (push) Has been cancelled
Rust / docs (push) Has been cancelled
Rust / compile-no-std (push) Has been cancelled
Rust / test (beta) (push) Has been cancelled
Rust / test (nightly) (push) Has been cancelled
Rust / test (stable) (push) Has been cancelled
2025-10-30 11:57:25 +00:00
Andriy Romanov
bc6e1d6e1a
Added TIMESTAMP_NTZ type support with precision to Snowflake dialect (#2080) 2025-10-30 09:20:41 +00:00
Luca
07a828f661 Replaced CSV with custom csv parser 2025-10-29 18:42:41 +01:00
Luca
5120d8c051 Fixed code smells 2025-10-29 11:22:07 +01:00
Luca
c6c391c114 Fixed broken doc test 2025-10-29 10:38:42 +01:00
Luca
7ea97462de Tentatively fixed snowflake ident in @-prefixed paths 2025-10-29 10:37:32 +01:00
Luca
819c0958d6 Tentatively added support for path identifiers 2025-10-29 10:16:19 +01:00
Luca
93ea5d2458 Extended CSV STDIN tests and resolved more corner cases in tokenizer 2025-10-29 09:35:54 +01:00
Luca
b862dc7eab Added handling of CSVs in COPY STDIN 2025-10-28 22:56:31 +01:00
Luca
1b8d716182 Made test_table_ident_err more verbose 2025-10-28 16:36:51 +01:00
Luca
c75f11bf47 Extended placeholder syntax test and moved check in tokenizer 2025-10-28 16:26:35 +01:00
Luca
52338d6ef5 Started to remove whitespace 2025-10-28 15:27:43 +01:00
Thomas Kluyver
67684c84d4
SQLite: make period optional for CREATE TRIGGER (#2071)
Some checks failed
license / Release Audit Tool (RAT) (push) Has been cancelled
Rust / codestyle (push) Has been cancelled
Rust / lint (push) Has been cancelled
Rust / benchmark-lint (push) Has been cancelled
Rust / compile (push) Has been cancelled
Rust / docs (push) Has been cancelled
Rust / compile-no-std (push) Has been cancelled
Rust / test (beta) (push) Has been cancelled
Rust / test (nightly) (push) Has been cancelled
Rust / test (stable) (push) Has been cancelled
Co-authored-by: Ifeanyi Ubah <ify1992@yahoo.com>
2025-10-22 09:12:06 +00:00
Yoav Cohen
6b352eaffd
Redshift: more copy options (#2072) 2025-10-22 09:11:19 +00:00
Luca Cappelletti
9cc9f9ab38
Refactored ColumnOption::Unique to reuse UniqueConstraint and PrimaryKeyConstraint (#2064)
Some checks are pending
license / Release Audit Tool (RAT) (push) Waiting to run
Rust / codestyle (push) Waiting to run
Rust / lint (push) Waiting to run
Rust / benchmark-lint (push) Waiting to run
Rust / compile (push) Waiting to run
Rust / docs (push) Waiting to run
Rust / compile-no-std (push) Waiting to run
Rust / test (beta) (push) Waiting to run
Rust / test (nightly) (push) Waiting to run
Rust / test (stable) (push) Waiting to run
2025-10-21 08:05:02 +00:00
Luca Cappelletti
f861566c8d
Reused CheckConstraint in ColumnOption (#2063)
Some checks failed
license / Release Audit Tool (RAT) (push) Has been cancelled
Rust / codestyle (push) Has been cancelled
Rust / lint (push) Has been cancelled
Rust / benchmark-lint (push) Has been cancelled
Rust / compile (push) Has been cancelled
Rust / docs (push) Has been cancelled
Rust / compile-no-std (push) Has been cancelled
Rust / test (beta) (push) Has been cancelled
Rust / test (nightly) (push) Has been cancelled
Rust / test (stable) (push) Has been cancelled
2025-10-16 08:38:50 +00:00
niebayes
218f43cf2d
chore: add stack overflow warning for Visitor and VisitorMut (#2068) 2025-10-16 08:37:01 +00:00
Luca Cappelletti
c8531d41a1
Added support for MATCH syntax and unified column option ForeignKey (#2062)
Some checks are pending
license / Release Audit Tool (RAT) (push) Waiting to run
Rust / codestyle (push) Waiting to run
Rust / lint (push) Waiting to run
Rust / benchmark-lint (push) Waiting to run
Rust / compile (push) Waiting to run
Rust / docs (push) Waiting to run
Rust / compile-no-std (push) Waiting to run
Rust / test (beta) (push) Waiting to run
Rust / test (nightly) (push) Waiting to run
Rust / test (stable) (push) Waiting to run
Co-authored-by: Ifeanyi Ubah <ify1992@yahoo.com>
2025-10-15 11:15:55 +00:00
Luca Cappelletti
4490c8c55c
Added support for SQLite triggers (#2037)
Some checks failed
license / Release Audit Tool (RAT) (push) Has been cancelled
Rust / codestyle (push) Has been cancelled
Rust / lint (push) Has been cancelled
Rust / benchmark-lint (push) Has been cancelled
Rust / compile (push) Has been cancelled
Rust / docs (push) Has been cancelled
Rust / compile-no-std (push) Has been cancelled
Rust / test (beta) (push) Has been cancelled
Rust / test (nightly) (push) Has been cancelled
Rust / test (stable) (push) Has been cancelled
Co-authored-by: Ifeanyi Ubah <ify1992@yahoo.com>
2025-10-11 11:16:56 +00:00
Luca Cappelletti
cc595cfd84
Moving several struct variants out of Statement enum to allow for trait impls for specific sub-variants (#2057)
Some checks are pending
license / Release Audit Tool (RAT) (push) Waiting to run
Rust / codestyle (push) Waiting to run
Rust / lint (push) Waiting to run
Rust / benchmark-lint (push) Waiting to run
Rust / compile (push) Waiting to run
Rust / docs (push) Waiting to run
Rust / compile-no-std (push) Waiting to run
Rust / test (beta) (push) Waiting to run
Rust / test (nightly) (push) Waiting to run
Rust / test (stable) (push) Waiting to run
2025-10-10 14:08:20 +00:00
Joris Bayer
e7d42f3d1a
Increase version of sqlparser_derive from 0.3.0 to 0.4.0 (#2060)
Some checks are pending
Rust / codestyle (push) Waiting to run
license / Release Audit Tool (RAT) (push) Waiting to run
Rust / lint (push) Waiting to run
Rust / benchmark-lint (push) Waiting to run
Rust / docs (push) Waiting to run
Rust / compile-no-std (push) Waiting to run
Rust / compile (push) Waiting to run
Rust / test (beta) (push) Waiting to run
Rust / test (nightly) (push) Waiting to run
Rust / test (stable) (push) Waiting to run
2025-10-10 11:11:07 +00:00
Dmitrii Blaginin
35220ee38c
Require PR (#2052) 2025-10-10 11:10:13 +00:00
Andrew Harper
0fb3b6b11c
Add support for procedure parameter default values (#2041)
Some checks failed
license / Release Audit Tool (RAT) (push) Has been cancelled
Rust / codestyle (push) Has been cancelled
Rust / lint (push) Has been cancelled
Rust / benchmark-lint (push) Has been cancelled
Rust / compile (push) Has been cancelled
Rust / docs (push) Has been cancelled
Rust / compile-no-std (push) Has been cancelled
Rust / test (beta) (push) Has been cancelled
Rust / test (nightly) (push) Has been cancelled
Rust / test (stable) (push) Has been cancelled
2025-10-08 11:04:36 +00:00
Luca Cappelletti
8c82fc0a19
Moved constraint variant outside of TableConstraint enum (#2054)
Co-authored-by: Ifeanyi Ubah <ify1992@yahoo.com>
2025-10-08 11:03:26 +00:00
nick young
ade4082656
[databricks] update dialect to support grouping by with modifier (#2047)
Some checks failed
license / Release Audit Tool (RAT) (push) Has been cancelled
Rust / codestyle (push) Has been cancelled
Rust / lint (push) Has been cancelled
Rust / benchmark-lint (push) Has been cancelled
Rust / compile (push) Has been cancelled
Rust / docs (push) Has been cancelled
Rust / compile-no-std (push) Has been cancelled
Rust / test (beta) (push) Has been cancelled
Rust / test (nightly) (push) Has been cancelled
Rust / test (stable) (push) Has been cancelled
Co-authored-by: Ifeanyi Ubah <ify1992@yahoo.com>
2025-10-04 06:35:09 +00:00
Mohamed Abdeen
7461d8bd02
MySQL: CREATE INDEX: allow USING clause before ON (#2029)
Some checks failed
license / Release Audit Tool (RAT) (push) Has been cancelled
Rust / codestyle (push) Has been cancelled
Rust / lint (push) Has been cancelled
Rust / benchmark-lint (push) Has been cancelled
Rust / compile (push) Has been cancelled
Rust / docs (push) Has been cancelled
Rust / compile-no-std (push) Has been cancelled
Rust / test (beta) (push) Has been cancelled
Rust / test (nightly) (push) Has been cancelled
Rust / test (stable) (push) Has been cancelled
2025-09-26 10:46:18 +00:00