We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
DFParser::parse_sql_with_dialect(sql, dialect.as_ref())?
trying to parse COPY INTO .. as Statement::CopyTo even if we set "snowflake" dialect where Statement::CopyIntoSnowflake already supported.
COPY INTO ..
The possible reason of the issue related to Keyword::COPY logic. We need to check if the next token != Keyword::INTO to pass such sql to sqlparser-rs
/// Parse a new expression pub fn parse_statement(&mut self) -> Result<Statement, ParserError> { match self.parser.peek_token().token { Token::Word(w) => { match w.keyword { Keyword::COPY => { self.parser.next_token(); self.parse_copy() } } } ...
No response
With "snowflake" dialect COPY INTO statement should be parsed correctly as Statement::CopyIntoSnowflake
COPY INTO
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Describe the bug
trying to parse
COPY INTO ..
as Statement::CopyTo even if we set "snowflake" dialect where Statement::CopyIntoSnowflake already supported.The possible reason of the issue related to Keyword::COPY logic. We need to check if the next token != Keyword::INTO to pass such sql to sqlparser-rs
To Reproduce
No response
Expected behavior
With "snowflake" dialect
COPY INTO
statement should be parsed correctly as Statement::CopyIntoSnowflakeAdditional context
No response
The text was updated successfully, but these errors were encountered: