-
Notifications
You must be signed in to change notification settings - Fork 625
DuckDB, Postgres, SQLite: NOT NULL and NOTNULL expressions #1927
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
Open
ryanschneider
wants to merge
16
commits into
apache:main
Choose a base branch
from
ryanschneider:not-null-and-notnull-support
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
3b5cdce
DuckDB, Postgres, SQLite: NOT NULL and NOTNULL expressions
ryanschneider fe51680
fixup: change to supports_is_not_null_alias(IsNotNullAlias)
ryanschneider ab5c571
fixup: make `NOTNULL`/`NOT NULL` an alias for Expr::IsNotNull
ryanschneider 75ba821
fixup: simplify tests
ryanschneider 4009fa7
fixup: add precedence tests as well
ryanschneider ab6607b
fixup: handle `expr NOT NULL` directly in parse_subexpr.
ryanschneider 375fe8c
fixup: Add ParserState::ColumnDefinition to avoid parsing NOT NULL as…
ryanschneider 40abd90
Merge branch 'main' into not-null-and-notnull-support
ryanschneider 45fff12
fixup: fmt
ryanschneider bf25f42
Return to ParserState::Normal when parsing DEFAULT sub-expression.
ryanschneider bc454c6
Handle NOT NULL in MATERIALIZED and CHECK options as well.
ryanschneider b7d4e1e
Merge branch 'main' into not-null-and-notnull-support
ryanschneider 7371bff
Update tests/sqlparser_clickhouse.rs
ryanschneider 1466e2a
Address feedback from PR:
ryanschneider 0c56a51
Merge branch 'main' into not-null-and-notnull-support
ryanschneider 8b376b8
fixup: address next round of feedback
ryanschneider File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -608,6 +608,7 @@ define_keywords!( | |
NOT, | ||
NOTHING, | ||
NOTIFY, | ||
NOTNULL, | ||
NOWAIT, | ||
NO_WRITE_TO_BINLOG, | ||
NTH_VALUE, | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.