canalun
f98a2f9dca
feat: mysql no-escape mode ( #870 )
...
Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>
2023-07-19 16:36:52 -04:00
parkma99
eb288487a6
Support UNION (ALL) BY NAME syntax ( #915 )
2023-07-18 17:15:05 -04:00
Andrew Lamb
c45451850c
Clean up JSON operator tokenizing code ( #923 )
2023-07-17 16:09:55 -04:00
Igor Izvekov
df45db1375
fix: parsing JsonOperator
( #913 )
2023-07-17 15:03:48 -04:00
Igor Izvekov
c8b6e7f2c7
feat: comments for all operators ( #917 )
2023-07-17 14:42:28 -04:00
Andrew Lamb
4efe55dd8a
Remove most instances of #[cfg(feature(bigdecimal))]
in tests ( #910 )
2023-07-17 14:19:51 -04:00
Igor Izvekov
a50671d95d
feat: support PGOverlap operator ( #912 )
2023-07-06 09:27:18 -04:00
Jay Zhan
20ac38b4da
Support multi args for unnest ( #909 )
...
Signed-off-by: jayzhan211 <jayzhan211@gmail.com>
Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>
2023-06-30 16:50:46 -04:00
liadgiladi
f05f71e20d
Support ALTER VIEW
, MySQL syntax ( #907 )
...
Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>
2023-06-29 13:33:51 -04:00
Robert Pack
9effeba0d8
feat: add deltalake keywords ( #906 )
2023-06-29 13:30:21 -04:00
parkma99
04c9fbaead
update parse STRICT tables ( #903 )
...
Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>
2023-06-23 10:48:04 -04:00
Igor Izvekov
8877cbafa6
fix: unary negation operator with operators: Mul
, Div
and Mod
( #902 )
2023-06-22 11:15:31 -04:00
delsehi
f72b5a5d9b
Support basic CREATE PROCEDURE of MSSQL ( #900 )
...
Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>
2023-06-22 11:09:14 -04:00
dawg
75f18ecfda
Add support for DuckDB's CREATE MACRO statements ( #897 )
2023-06-21 15:12:58 -04:00
Jeremy Dyer
2296de2bc4
Add fn support_group_by_expr to Dialect trait ( #896 )
2023-06-15 09:10:56 -04:00
Sam Rijs
2b37e4ae6e
Add support for CREATE TYPE (AS) statements ( #888 )
...
Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>
2023-06-08 06:56:39 -04:00
Berkay Şahin
ef46cd3752
Named window frames ( #881 )
...
* after over clause, named window can be parsed with window ... as after having clause
* Lint errors are fixed
* Support for multiple windows
* fix lint errors
* simplifications
* rename function
* Rewrite named window search in functional style
* Test added and some minor changes
* Minor changes on tests and namings, and semantic check is removed
---------
Co-authored-by: Mustafa Akur <mustafa.akur@synnada.ai>
Co-authored-by: Mehmet Ozan Kabak <ozankabak@gmail.com>
2023-05-18 15:00:24 -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
eitsupi
33b12acce7
feat: add DuckDB dialect ( #878 )
...
* feat: add DuckDB dialect
* formatting
* fix conflict
* support // in GenericDialect
* add DucDbDialect to all_dialects
* add comment from suggestion
Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>
* fix: support // in GenericDialect
---------
Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>
2023-05-18 14:57:29 -04:00
Maciej Obuchowski
3be19c7666
truncate: table as optional keyword ( #883 )
...
Signed-off-by: Maciej Obuchowski <obuchowski.maciej@gmail.com>
2023-05-18 14:55:02 -04:00
eitsupi
097e7ad56e
feat: Support MySQL's DIV
operator ( #876 )
...
* feat: MySQL's DIV operator
* fix: do not use `_` prefix for used variable
---------
Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>
2023-05-17 13:26:14 -04:00
Maximilian Roos
feaa13c9a9
feat: Add custom operator ( #868 )
...
* feat: Add custom operator
From #863
- It doesn't parse anything — I'm not sure how to parse ` SELECT 'a' REGEXP '^[a-d]';` with `REGEXP` as the operator... (but fine for my narrow purpose)
- If we need tests, where would I add them?
* Update src/ast/operator.rs
---------
Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>
2023-05-17 13:12:50 -04:00
Jeffrey
4559d87a82
Add parse_multipart_identifier function to parser ( #860 )
...
* Add parse_multipart_identifier function to parser
* Update doc for parse_multipart_identifier
* Fix conflict
2023-05-17 13:04:57 -04:00
Mustafa Akur
482a3ad417
Add support for multiple expressions, order by in aggregations ( #879 )
...
* Add support for multiple expressions, order by in aggregations
* Fix formatting errors
* Resolve linter errors
2023-05-17 13:04:33 -04:00
Armin Primadi
f15da8772e
Make Expr::Interval its own struct ( #872 )
...
* Make Expr::Interval its own struct
* Add test interval display
* Fix cargo fmt
2023-05-09 20:42:03 -04:00
Armin Primadi
0ff863b2c7
Add support for query source in COPY .. TO statement ( #858 )
...
* Add support for query source in COPY .. TO statement
* Fix compile error
2023-05-01 15:39:18 -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
Aljaž Mur Eržen
3b1076c194
Support DISTINCT ON (...)
( #852 )
...
* Support "DISTINCT ON (...)"
* a test
* fix the merge
2023-04-27 15:34:54 -04:00
AviRaboah
f72e2ec382
Support multiple-table DELETE syntax ( #855 )
2023-04-27 11:41:20 -04:00
Andrew Lamb
5ecf633e31
Add dialect_from_str
and improve Dialect
documentation ( #848 )
...
* Add `dialect_from_str` and improve `Dialect` documentation
* cleanup
* fix compilation with nostd
2023-04-27 11:37:11 -04:00
pawel.leszczynski
d8af92536c
support COPY INTO in snowflake ( #841 )
...
Signed-off-by: Pawel Leszczynski <leszczynski.pawel@gmail.com>
2023-04-27 11:30:48 -04:00
AviRaboah
3e92ad349f
Support identifiers beginning with digits in MySQL ( #856 )
2023-04-26 09:27:04 -04:00
Coby Geralnik
04d9f3af2e
Added support for Mysql Backslash escapes (enabled by default) ( #844 )
2023-04-10 09:56:01 -04:00
Andrew Lamb
00d071286b
Move tests from parser.rs to appropriate parse_XX tests ( #845 )
...
* Move tests from parser.rs to appropriate parse_XX tests
* move to postgres tests
* move more tests
2023-04-10 09:48:23 -04:00
Nick Randall
784a19138f
Support "UPDATE" statement in "WITH" subquery ( #842 )
...
* fix(WITH): allow "UPDATE" statement in "WITH" subquery"
* add test case
* update test to validate round-trip
2023-04-09 07:41:56 -04:00
pawel.leszczynski
29dea5d017
support PIVOT table syntax ( #836 )
...
Signed-off-by: Pawel Leszczynski <leszczynski.pawel@gmail.com>
2023-03-26 07:33:35 -04:00
pawel.leszczynski
79c7ac73df
support CREATE/DROP STAGE for Snowflake ( #833 )
...
Signed-off-by: Pawel Leszczynski <leszczynski.pawel@gmail.com>
2023-03-26 07:31:37 -04:00
Maciej Skrzypkowski
a1b7341b87
Non-Latin characters support ( #840 )
...
* Non latin characters
---------
Co-authored-by: Maciej Skrzypkowski <maciej.skrzypkowski@satoricyber.com>
* Test for mysql
---------
Co-authored-by: Maciej Skrzypkowski <maciej.skrzypkowski@satoricyber.com>
2023-03-23 07:07:17 -04:00
Felix Yan
eb67d489bb
Correct typos in parser.rs ( #838 )
2023-03-18 11:23:18 -04:00
sam
a8a8e65b7c
PostgreSQL: GENERATED { ALWAYS | BY DEFAULT } AS IDENTITY and GENERATED ALWAYS AS ( generation_expr ) support ( #832 )
...
* GENERATED { ALWAYS | BY DEFAULT } AS IDENTITY [ ( sequence_options ) basic impl - test are failing.
* PostgreSQL GENERATED { ALWAYS | BY DEFAULT } AS IDENTITY [ ( sequence_options ) and GENERATED ALWAYS AS ( generation_expr ) STORED implementation.
2023-03-16 05:54:00 -04:00
pawel.leszczynski
4ff3aeb040
support IF EXISTS in COMMENT statements ( #831 )
...
* support IF EXISTS in COMMENT statements
Signed-off-by: Pawel Leszczynski <leszczynski.pawel@gmail.com>
* Update src/ast/mod.rs
Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>
---------
Signed-off-by: Pawel Leszczynski <leszczynski.pawel@gmail.com>
Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>
2023-03-09 08:06:39 -05:00
pawel.leszczynski
548191814c
support snowflake alter table swap with ( #825 )
...
Signed-off-by: Pawel Leszczynski <leszczynski.pawel@gmail.com>
2023-03-07 07:16:39 -05:00
Andrew Lamb
9ea396d0da
Improve documentation on verified_*
methods ( #828 )
2023-03-07 07:07:29 -05: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
Ankur Goyal
d69b875367
ClickHouse CREATE TABLE Fixes: add ORDER BY and fix clause ordering ( #824 )
...
* Fix ClickHouse (add ORDER BY)
* Improve test case
2023-03-06 09:55:55 -05:00
Mykhailo Bondarenko
1cf913e717
feat: Support PostgreSQL exponentiation. ( #813 )
...
* Add Postgres exponent operator
* Parse caret as BinaryOperator::PGExp in PostgreSQL
* Update sqlparser_postgres.rs
* update tests to support PGExp
* cargo fmt
* improve extensibility
* cargo fmt
* redundant code and documentation lionks
2023-03-02 10:39:39 -05:00
Y Togami
fbbf1a4e84
feat: support BIGNUMERIC
of bigquery ( #811 )
...
* add tests
* bignumeric data type
* bignumeric keyword
* fix doc
* add exact_number_info
* fix doc
* check result string
2023-03-02 10:38:00 -05:00
Ankur Goyal
b45306819c
Add support for trailing commas ( #810 )
...
* Add support for trailing commas
* Support trailing commas for brace/bracket
* Andrew's comments
2023-03-02 10:35:46 -05:00
Y Togami
2285bb44ba
chore: fix typo ( #822 )
2023-03-02 10:32:20 -05:00
Y Togami
58de3c1222
feat: support raw string literal of BigQuery ( #812 )
...
* add tests
* feat: parse raw literal of bq
* merge double quoted & single quoted to raw string literal
* Update src/ast/value.rs
---------
Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>
2023-03-01 14:11:42 -05:00