mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-11-01 23:50:56 +00:00
Fix parse COPY INTO stage names without parens for SnowFlake (#1187)
Signed-off-by: Maciej Obuchowski <obuchowski.maciej@gmail.com>
This commit is contained in:
parent
20c5754784
commit
17ef71e42b
2 changed files with 47 additions and 1 deletions
|
|
@ -155,6 +155,10 @@ pub fn parse_stage_name_identifier(parser: &mut Parser) -> Result<Ident, ParserE
|
|||
parser.prev_token();
|
||||
break;
|
||||
}
|
||||
Token::RParen => {
|
||||
parser.prev_token();
|
||||
break;
|
||||
}
|
||||
Token::AtSign => ident.push('@'),
|
||||
Token::Tilde => ident.push('~'),
|
||||
Token::Mod => ident.push('%'),
|
||||
|
|
@ -219,7 +223,7 @@ pub fn parse_copy_into(parser: &mut Parser) -> Result<Statement, ParserError> {
|
|||
}
|
||||
_ => {
|
||||
parser.prev_token();
|
||||
from_stage = parser.parse_object_name(false)?;
|
||||
from_stage = parse_snowflake_stage_name(parser)?;
|
||||
stage_params = parse_stage_params(parser)?;
|
||||
|
||||
// as
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue