Skip to content

merge Sigma changes into main branch #9

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 55 commits into from
Jan 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
a711779
cargo fmt
donhcd Dec 5, 2020
81139be
add json index for snowflake, bq
donhcd Dec 5, 2020
933cab6
add flatten
donhcd Dec 5, 2020
d9412d9
add snowflake dateparts
donhcd Dec 5, 2020
98c0a20
useful parsing errors
donhcd Dec 5, 2020
b5a9119
parse decimals without 0 prefix
donhcd Dec 5, 2020
f110af3
snowflake: within group
donhcd Dec 5, 2020
8641947
snowflake: json bracket syntax
donhcd Dec 5, 2020
5b06853
snowflake: join where
donhcd Dec 5, 2020
495465d
snowflake: ilike
donhcd Dec 5, 2020
da201d4
snowflake: handle like ... escape ...
donhcd Dec 5, 2020
9d5f9fb
snowflake: try_cast
donhcd Dec 5, 2020
781170a
snowflake: qualify
donhcd Dec 5, 2020
c645682
snowflake: handle pivot
donhcd Dec 5, 2020
262475e
snowflake: allow idents to start with $
donhcd Dec 5, 2020
3709d42
snowflake: fix parsing for position
donhcd Dec 5, 2020
d7c6483
snowflake: minus set operator
donhcd Dec 5, 2020
6ab4ef8
snowflake json: cleanup/fix bracket and dot notation
donhcd Dec 5, 2020
d7fa30c
snowflake: number
donhcd Dec 5, 2020
ba66a66
snowflake: string literal parse esc quotes
donhcd Dec 5, 2020
bbfea03
snowflake: nested exprs can be lists
donhcd Dec 5, 2020
5190fa3
join constraints are not required
donhcd Dec 5, 2020
cdc7f6b
smarter number literal parsing with state machine for scientific nota…
donhcd Dec 8, 2020
5c61e96
snowflake: date/time field variants
donhcd Dec 8, 2020
8480dcc
rs/pg: AT TIME ZONE
donhcd Dec 8, 2020
5eb4e0e
rs: ignore/respect nulls
donhcd Dec 8, 2020
4355c2e
tokenizer: treat zwsp as whitespace
donhcd Dec 8, 2020
868ca05
pg/rs: SIMILAR TO
donhcd Dec 8, 2020
7946127
rs: allow brackets around idents
donhcd Dec 9, 2020
5e6fb71
rs: allow str literal date/time parts
donhcd Dec 9, 2020
746b39a
rs: more IS [NOT] *
donhcd Dec 9, 2020
2f8dfb4
pg: add json ops
donhcd Dec 9, 2020
4b840d2
add BigQueryDialect
donhcd Dec 10, 2020
9d67d0a
bq: backtick quoted idents
donhcd Dec 10, 2020
391e685
bq: be resilient to trailing commas
donhcd Dec 11, 2020
4b4c31b
bq: be much more flexible with parsing function args
donhcd Dec 11, 2020
e9ae6bb
bq: handle idents using backticks
donhcd Dec 11, 2020
c375ae2
bq: handle interval parsing
donhcd Dec 12, 2020
343cb64
bq: parse regex literals (consider merging with snowflake str parsing)
donhcd Dec 12, 2020
56fc202
bq: add in more date/time parts
donhcd Dec 12, 2020
227eb17
bq: allow aliases with backtick quoting
donhcd Dec 12, 2020
5e1a628
bq: parse wildcard modifiers except/replace
donhcd Dec 12, 2020
8e40ac9
bq: named window specs
donhcd Dec 12, 2020
c6a0497
bq: IN <expr>
donhcd Dec 12, 2020
4b4fb62
snowflake: remove special position handling? maybe should remove more
donhcd Dec 12, 2020
dd733bf
bq: double quoted string
donhcd Dec 12, 2020
64f752c
bq: typeless structs
donhcd Dec 12, 2020
35b9f2b
bq: add secret datetime fields
donhcd Dec 12, 2020
3d9f2c4
fixup bq args bs
donhcd Dec 12, 2020
7d0dc15
snowflake: ignore/respect nulls for window funcs
donhcd Dec 12, 2020
e6c54a2
Added Unpivot. Fixed some Pivot (#2)
markwongsk May 10, 2021
3fbbed8
[SIG-13647] allow idents for limits and offsets (#3)
donhcd Jul 22, 2021
7fa2e60
Fix compilation issues (#5)
markwongsk Aug 23, 2021
75d4f63
Fix tests pass (#7)
markwongsk Aug 25, 2021
294d1de
Added tests for sigma-related parser changes (#8)
markwongsk Sep 1, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/ast/ddl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,7 @@ impl fmt::Display for ColumnOption {
}
}

#[allow(clippy::needless_lifetimes)]
fn display_constraint_name<'a>(name: &'a Option<Ident>) -> impl fmt::Display + 'a {
struct ConstraintName<'a>(&'a Option<Ident>);
impl<'a> fmt::Display for ConstraintName<'a> {
Expand Down
Loading