Commit graph

674 commits

Author SHA1 Message Date
Qinxuan Chen
10ec257e21
Use derive(Default) for HiveFormat (#348)
Signed-off-by: koushiro <koushiro.cqx@gmail.com>
2021-09-09 12:24:17 -04:00
Dmitry Patsura
d2d4fc0c58
feat: Support DESCRIBE table_name (#340)
* feat: Support DESCRIBE

* feat: Support DESCRIBE table_name

* Update src/ast/mod.rs

Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>

* Update src/ast/mod.rs

Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>

* Update src/ast/mod.rs

Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>

Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>
2021-09-09 11:49:33 -04:00
Qinxuan Chen
d8adb1708c
Eliminate redundant string copy of Tokenizer (#343)
Signed-off-by: koushiro <koushiro.cqx@gmail.com>
2021-09-02 09:20:31 +02:00
Alex Vasilev
77d90d3b85
Support minimum display width for integer data types (#337)
* Support minimum display width for integers

* make fmt happy, updated docstrings
2021-08-29 07:13:10 -04:00
Dmitry Patsura
9a5716d94b
feat: Support SHOW CREATE TABLE|EVENT|FUNCTION (MySQL specific) (#338)
* feat: Support SHOW CREATE TABLE|EVENT|FUNCTION (MySQL specific)

* misc: Simplify test with loop over enum values
2021-08-29 07:03:39 -04:00
dependabot[bot]
69af5a1d99
Update bigdecimal requirement from 0.2 to 0.3 (#341)
Updates the requirements on [bigdecimal](https://github.com/akubera/bigdecimal-rs) to permit the latest version.
- [Release notes](https://github.com/akubera/bigdecimal-rs/releases)
- [Commits](https://github.com/akubera/bigdecimal-rs/compare/v0.2.0...v0.3.0)

---
updated-dependencies:
- dependency-name: bigdecimal
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-27 12:29:55 +02:00
TheSchemm
70ffa4166c
Support Parsing of hexadecimal literals that start with 0x (#324)
* Add support for 0x prefixed bin literal

* Add tests

* Fix formatting for test
2021-08-25 12:57:32 -04:00
joshwd36
a95c81fb13
Add referential actions to TableConstraint foreign key (#306)
* Add referential actions to TableConstraint foreign key

* Remove copy/paste error

* Add referential actions to TableConstraint foreign key

* Add additional tests
2021-08-25 12:03:10 -04:00
Andrew Lamb
f56e57470e (cargo-release) start next development iteration 0.10.1-alpha.0 2021-08-23 15:47:06 -04:00
Andrew Lamb
4d5aaa79b9 (cargo-release) version 0.10.0 2021-08-23 15:47:06 -04:00
Andrew Lamb
7e7d870e78
Add release notes for 0.10.0 (#336)
* Add release notes for 0.10.0

* Add mention of TRIM syntax
2021-08-23 15:42:01 -04:00
Jiseok CHOI
af1ac865b1
Add TrimWhereField for parse_trim_expr (#334)
* Remove Box from `trim_where`

* Add TrimWhereField for `parse_trim_expr`

* Add negative test case
2021-08-23 10:51:36 -04:00
Hoon Wee
5ce67177b3
Fix the term 'Modulus' to 'Modulo' (#335) 2021-08-23 12:05:42 +02:00
Andrew Lamb
31549b9241
Merge pull request #333 from andygrove/update-cargo-toml
Update links to reflect repository move to sqlparser-rs GitHub org
2021-08-23 06:01:32 -04:00
Andrew Lamb
2d04266a8e
Merge pull request #312 from PsiACE/main
Add fuzzer based on honggfuzz
2021-08-23 05:59:45 -04:00
Andy Grove
9c9d9293b5 fix typo 2021-08-21 06:54:49 -06:00
Qinxuan Chen
5bc109a7ad
Support no_std (#332)
* Support `no_std`

Signed-off-by: koushiro <koushiro.cqx@gmail.com>

* Fix typo

Signed-off-by: koushiro <koushiro.cqx@gmail.com>
2021-08-21 10:15:43 +02:00
Andy Grove
3e34392230 Update links to reflect repository move to sqlparser-rs GitHub org 2021-08-20 17:05:02 -06:00
Andy Grove
5ebc06b20c Update links to reflect repository move to sqlparser-rs GitHub org 2021-08-20 17:03:06 -06:00
Andrew Lamb
293133f910
Merge pull request #313 from Jimexist/add-default-for-window-frame
add default value for window frame
2021-08-20 14:11:11 -04:00
Jiayu Liu
950daf39bb add default value for window frame 2021-08-20 13:55:53 -04:00
Andrew Lamb
783bc21d29
Merge pull request #328 from b41sh/regexp_match
Add support for PostgreSQL regex match
2021-08-20 13:54:24 -04:00
Jiseok CHOI
e548d38de8
Support TRIM syntax (#331)
* Support TRIM syntax

- Implement the following cases
- TRIM([BOTH | LEADING | TRAILING] <expr> [FROM <expr>])
- TRIM(<expr>)

* Resolve 1.54.0 clippy error

- Remove needless borrow

* Add test cases for TRIM
2021-08-20 08:53:52 +02:00
Qinxuan Chen
67e17b27f5
Make clippy happy (#330)
Signed-off-by: koushiro <koushiro.cqx@gmail.com>
2021-08-19 23:02:15 +02:00
b41sh
d312837d7a fmt 2021-08-18 22:40:40 +08:00
baishen
3c3bc3e97e
Update src/tokenizer.rs
Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>
2021-08-18 09:38:46 -05:00
baishen
24ca90acce
Merge pull request #1 from alamb/alamb/fixup_clippy
Fix clippy in regexp_match branch
2021-08-18 09:34:29 -05:00
Andrew Lamb
b6df67802f cargo fmt 2021-08-18 09:27:09 -04:00
b41sh
2c296f9dc4 fix clippy 2021-08-18 13:17:07 +08:00
b41sh
80759a4deb support regex match 2021-08-13 19:50:14 +08:00
sundyli
e5991f3ae5
Support tinyint (#320)
* Support tinyint

* Add tests
2021-07-17 14:16:38 +02:00
Andrew Lamb
c5de1225e9
Update datafusion link in README (#319) 2021-06-30 07:50:09 +02:00
Chojan Shang
a12dd0e83a *: make clippy happy
Signed-off-by: Chojan Shang <psiace@outlook.com>
2021-06-25 03:43:11 +08:00
Daniël Heres
d8775e2815
Fix linting errors (#318)
* Fix linting error

* Fix linting errors
2021-06-22 07:49:25 +02:00
BohuTANG
56e50dccd4
[parser] Return error instead of panic (#316)
* [parser] return error instead of panic

* Fix clippy warning

* Fix cargo fmt warning
2021-06-22 07:05:43 +02:00
Chojan Shang
0c52491191 docs: fuzzing
Signed-off-by: Chojan Shang <psiace@outlook.com>
2021-06-03 14:10:15 +08:00
Chojan Shang
1e65984613 test: add fuzzer
Signed-off-by: Chojan Shang <psiace@outlook.com>
2021-06-03 14:00:16 +08:00
Max Countryman
35ef0eee38
Merge pull request #300 from maxcountryman/feature/ilike
provide ILIKE support
2021-03-22 07:46:12 -07:00
Max Countryman
a9e6f77d62 provide ILIKE support
This introduces support for ILIKE and NOT ILIKE. ILIKE is the
case-insensitive variant of LIKE. Systems such as Postgres, Redshift,
and Snowflake provide this variant.[1][2][3]

[1] https://www.postgresql.org/docs/7.3/functions-matching.html
[2] https://docs.aws.amazon.com/redshift/latest/dg/r_patternmatching_condition_like.html
[3] https://docs.snowflake.com/en/sql-reference/functions/ilike.html
2021-03-22 07:31:42 -07:00
Heres, Daniel
1e87ab8e22 (cargo-release) start next development iteration 0.9.1-alpha.0 2021-03-21 23:29:18 +01:00
Heres, Daniel
f52891d0da (cargo-release) version 0.9.0 2021-03-21 23:29:18 +01:00
Heres, Daniel
c2340d1821 Add release notes for 0.8.0 2021-03-21 23:28:22 +01:00
Mike Seddon
e6e37b47db
Implement TRY_CAST (#299)
Adds support for `TRY_CAST` and fixes a clippy error
2021-03-21 23:26:16 +01:00
Heres, Daniel
43fef23bc8 (cargo-release) start next development iteration 0.8.1-alpha.0 2021-02-09 21:31:27 +01:00
Heres, Daniel
34cd794cd3 (cargo-release) version 0.8.0 2021-02-09 21:31:27 +01:00
Heres, Daniel
a868ff6ebe Add release notes 2021-02-09 21:30:05 +01:00
zhangli-pear
add8991144
feat: support sqlite insert or statement (#281) 2021-02-09 21:04:54 +01:00
Francis Du
07342d5853
Support parsing multiple show variables. (#290)
* feat: support parsing multiple show variables.

* fix: fix fmt error
2021-02-09 21:03:49 +01:00
Daniël Heres
f40955ee82
Parse floats without leading number (#294)
* Parse floats without leading number

* Move period token test

* Comments

* Enable test
2021-02-08 08:11:01 +01:00
Daniël Heres
6f0b2dcd92
Implement SUBSTRING(col [FROM <expr>] [FOR <expr>]) syntax (#293) 2021-02-07 08:06:50 -07:00