Alex Qyoun-ae
71c3ec057b
Support SHOW COLUMNS FROM tbl FROM db
( #562 )
2022-08-11 06:42:08 -04:00
Dmitry Patsura
e2b943799a
feat: Initial support for parsing MySQL show variables ( #559 )
...
Co-authored-by: Alex Vasilev <vaspiring@gmail.com>
2022-08-11 06:35:59 -04:00
Andrew Lamb
231370a770
(cargo-release) version 0.20.0
2022-08-05 14:10:58 -04:00
Andrew Lamb
bb5e2782b5
Make 0.20.0 release notes ( #555 )
2022-08-05 14:01:25 -04:00
Jamie Slome
9648a52715
Create SECURITY.md ( #546 )
2022-08-05 13:54:38 -04:00
Kaushik Iska
1c64129f76
[postgres] Add support for custom binary operators ( #548 )
...
* [postgres] Add support for custom binary operators
More details about operators in general are at:
https://www.postgresql.org/docs/current/sql-createoperator.html . This
patch attempts to parse `SELECT` queries that reference an operator
using `OPERATOR(<optional_schema>.<operator_name>)` syntax.
This is a PostgreSQL extension. There are no provisions for user-defined operators in the SQL standard.
* fix code-review comments and ci failures
* Allow custom operator in generic dialects too
* Parse `OPERATOR` as Vec<String>
* fix: std
Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>
2022-08-05 13:53:58 -04:00
Dmitry Patsura
6c98228e71
feat: Allow to use >> and << binary operators in Generic dialect ( #553 )
2022-08-05 06:25:57 -04:00
Wei-Ting Kuo
076b587bb2
Support NestedJoin
with an alias ( #551 )
...
* add alias for nestedjoin
* fmt
* add/modify test cases
* inline nestedjoin instead of macro
2022-08-03 19:41:15 -04:00
Yoshi Togami
e24951e080
feat: support SAFE_CAST for bigquery ( #552 )
...
Co-authored-by: togami2864 <yoshiaki.togami@plaid.co.jp>
2022-08-03 09:17:39 -04:00
Andrew Lamb
2a04212e56
(cargo-release) version 0.19.0
2022-07-28 14:54:22 -04:00
Andrew Lamb
ec22e00f81
Update CHANGELOG.md for 0.19.0 ( #545 )
2022-07-28 14:47:06 -04:00
Andy Richardson
16af309c74
Add support for ClickHouse DDL query syntax (on cluster
) ( #527 )
...
* Add on_cluster to Statement::CreateTable
* Add printing of on_cluster
* Update src/ast/mod.rs
Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>
* Fix fmt + nostd
* Remove unintended diff
Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>
2022-07-28 14:44:05 -04:00
Chris Allen
f74753436a
Support for empty array literals ( #532 )
...
Co-authored-by: Chris Allen <chrisa@indeed.com>
2022-07-18 19:28:39 +02:00
Chris Allen
7cbbd9188e
Add support for AT TIME ZONE
( #539 )
...
* Support for empty array literals
* Added support for AT TIME ZONE
Co-authored-by: Chris Allen <chrisa@indeed.com>
2022-07-18 13:03:01 -04:00
Maciej Obuchowski
4706d8b1d2
delete: add using clause, possibility of using aliases ( #541 )
...
Signed-off-by: Maciej Obuchowski <obuchowski.maciej@gmail.com>
2022-07-18 10:29:03 -04:00
Mike Roberts
93e16e9864
Add support for mysql 'SHOW CREATE VIEW' statement ( #536 )
2022-07-18 06:10:09 -04:00
5tan
dea7666086
Boxed Query body to save some stack space ( #540 )
2022-07-16 07:22:45 -04:00
Maciej Obuchowski
5363d4e399
create table: add clone syntax ( #542 )
...
Signed-off-by: Maciej Obuchowski <obuchowski.maciej@gmail.com>
2022-07-16 07:17:02 -04:00
Mykhailo Bondarenko
c2ccc80c28
Count characters instead of bytes ( #529 )
...
* Count characters instead of bytes
* cargo fmt
* add tests to PR #529
2022-07-07 13:45:59 -04:00
sivchari
68768530cd
feat: Add WITH OFFSET Alias ( #528 )
...
* feat: Add WITH OFFSET Alias
* update: fix with_offset_alias type
2022-06-29 13:29:44 -04:00
Yoshiyuki Komazaki
17c238bda7
feat: Support double quoted string ( #530 )
2022-06-28 16:41:23 -04:00
Andrey Frolov
f29ce10a1a
Distinguish between INT
and INTEGER
types ( #525 )
...
* support integer
* fmt
* Update src/ast/data_type.rs
Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>
Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>
2022-06-21 09:32:10 -04:00
Andrey Frolov
c884fbc388
add more consistency in ast ( #523 )
...
* add more consistency in ast
* refactor styling
2022-06-14 17:02:03 -04:00
Yoshi Togami
d981f70143
fix: Support expr
instead of string
for argument to interval
( #517 )
...
* fix: use expr instead of string in interval
* chore: resolve CI
Co-authored-by: togami2864 <yoshiaki.togami@plaid.co.jp>
2022-06-13 08:35:06 -04:00
Andrey Frolov
99697d26e1
add on update for my sql ( #522 )
2022-06-13 08:33:10 -04:00
Andrew Lamb
ca15a4edbf
(cargo-release) version 0.18.0
2022-06-06 16:53:46 -04:00
Andrew Lamb
3ffdb0bbe8
Update CHANGELOG.md for 0.18.0 ( #516 )
2022-06-06 16:50:31 -04:00
Dmitry Patsura
d361c3a3a1
feat: Support CLOSE (cursors) ( #515 )
2022-06-06 16:09:17 -04:00
Dmitry Patsura
3f1c6426f0
feat: Initial support for DECLARE (cursors) ( #509 )
2022-06-06 07:22:12 -04:00
Dmitry Patsura
66a3082cb6
feat: Support FETCH (cursors) ( #510 )
2022-06-04 14:24:36 -04:00
Yoshiyuki Komazaki
d19d955d9b
Support DATETIME
keyword ( #512 )
2022-06-04 14:19:57 -04:00
sivchari
aa46e930c5
Support UNNEST
as a table factor ( #493 )
...
* support unnest
* add test
* fix ast
* Update condition for BigQueryDialect or GenericDialect
I updated condition.
This changes conditionalize parsing for only BigQueryDialect or GenericDialect.
* Add some tests
* fix test
2022-05-27 06:27:51 -04:00
Riccardo Azzolini
d19c6c323c
Fix escaping of trailing quote in quoted identifiers ( #505 )
...
* Generalize EscapeSingleQuoteString to arbitrary quote character
* Fix escaping of trailing quote in quoted identifiers
* Add new tests instead of modifying existing tests
2022-05-27 06:25:24 -04:00
Maciej Obuchowski
cc2559c097
hive: add create function syntax ( #496 )
...
Signed-off-by: Maciej Obuchowski <obuchowski.maciej@gmail.com>
2022-05-26 17:30:10 -04:00
Riccardo Azzolini
0fa812bd2b
Fix parsing of COLLATE after parentheses in expressions ( #507 )
2022-05-25 16:10:38 -04:00
Riccardo Azzolini
901f5b974f
Distinguish between tables and nullary functions in FROM ( #506 )
2022-05-25 16:01:13 -04:00
Maciej Skrzypkowski
cd66034a4a
MERGE INTO semicolon handling ( #508 )
...
* SGA-4181 MERGE INTO semicolon handling
* fixed lint warning
Co-authored-by: Maciej Skrzypkowski <maciej.skrzypkowski@satoricyber.com>
2022-05-25 15:48:15 -04:00
mao
09bdb6bb8a
Support placeholders ($
or ?
) in LIMIT
clause ( #494 )
...
* fix: limit $1
* feat: test limit $1
* Update Cargo.toml
* cargo fmt
Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>
2022-05-25 15:40:30 -04:00
Dmitry Patsura
2c0886d9fe
feat: Support escaped string literals (PostgreSQL) ( #502 )
...
* feat: Support escaped string literals (PostgreSQL)
Signed-off-by: Dmitry Patsura <talk@dmtry.me>
* lint
* escape ', \r, \t
* Update src/ast/value.rs
Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>
* Update src/tokenizer.rs
Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>
* test: two slashes
* remove dead code
* test: parsing error
* support generic dialect too (for DF)
Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>
2022-05-25 14:42:14 -04:00
Dmitry Patsura
4070f3ec6e
feat: Convert IS TRUE|FALSE to expression ( #499 )
2022-05-24 09:26:50 -04:00
George Andronchik
a6d7a35dac
feat: support DISCARD [ALL | PLANS | SEQUENCES | TEMPORARY | TEMP] ( #500 )
2022-05-22 15:44:53 -04:00
Maciej Obuchowski
7ab30d95b0
hive: add support for array<> ( #491 )
...
Signed-off-by: Maciej Obuchowski <obuchowski.maciej@gmail.com>
Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>
2022-05-22 15:38:24 -04:00
Maciej Obuchowski
74f92079ac
set: allow negative ident values ( #495 )
...
Signed-off-by: Maciej Obuchowski <obuchowski.maciej@gmail.com>
2022-05-22 15:33:07 -04:00
Andrew Lamb
85e0e5fd39
Add docs for MapAccess
( #489 )
...
* Add docs for `MapAccess`
* fix: fmt
* Apply suggestions from code review
Co-authored-by: Dmitry Patsura <zaets28rus@gmail.com>
* touchup
Co-authored-by: Dmitry Patsura <zaets28rus@gmail.com>
2022-05-22 15:26:06 -04:00
Andrew Lamb
11046f66e7
Correct typo: indexs to indexes ( #492 )
2022-05-22 15:03:48 -04:00
Alex Yaroslavsky
dd805e9a6b
Support unicode whitespace ( #482 )
...
* Support unicode whitespace
* Add test
2022-05-15 14:58:56 -04:00
Yoshiyuki Komazaki
97a148aee4
Add BigQuery dialect ( #490 )
2022-05-10 10:25:27 -04:00
Andrew Lamb
484a7b6da4
(cargo-release) version 0.17.0
2022-05-10 09:26:00 -04:00
Andrew Lamb
acd60d169d
Update changelog for 0.17.0 ( #488 )
...
* Update changelog for 0.17.0
* add reference to #466
* Updates for recent merges
2022-05-10 09:23:04 -04:00
Maciej Skrzypkowski
9750841a66
Parse merge source as table factor ( #483 )
...
* Parse source of MERGE as table_factor
Some MERGE queries need a table as a soruce,
added proper test showing it
* Clippy fix
Co-authored-by: Maciej Skrzypkowski <maciej.skrzypkowski@satoricyber.com>
2022-05-10 06:34:45 -04:00