-
Notifications
You must be signed in to change notification settings - Fork 670
Redshift: more copy options #2072
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
base: main
Are you sure you want to change the base?
Conversation
Do consider adding some tests for the newly added code. |
Have you looked at tests/sqlparser_common.rs? The changes there represent all cases for the newly added options. |
src/ast/mod.rs
Outdated
write!( | ||
f, | ||
"{}", | ||
match *enabled { | ||
Some(true) => " TRUE", | ||
Some(false) => " FALSE", | ||
_ => "", | ||
} | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this looks like it can be simplified as?
if let Some(enabled) = enabled {
write!()
}
src/parser/mod.rs
Outdated
Keyword::ON, | ||
Keyword::OFF, | ||
]) { | ||
Some(Keyword::PRESET) => None, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this branch valid, we don't seem to expect it in the keywords?
As far as I can understand, the changes made in |
It tests the full SQL to AST and AST to SQL flow. The new options are added to an existing flow, not introducing new AST structs. The existing structs are covered in existing tests. |
e44e613
to
72d7c5d
Compare
Added support for REMOVEQUOTES, COMPUPDATE and STATUPDATE.