File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -452,6 +452,11 @@ impl Dialect for SnowflakeDialect {
452452 _ => { }
453453 }
454454
455+ // CREATE [OR REPLACE] HYBRID TABLE — the "hybrid" property has no
456+ // observable effect here, so the modifier is discarded and the
457+ // statement is parsed as an ordinary table.
458+ let hybrid = parser. parse_keyword ( Keyword :: HYBRID ) ;
459+
455460 // CREATE [OR REPLACE] [ TEMP | TEMPORARY | VOLATILE ] FILE FORMAT.
456461 // For file formats VOLATILE is a synonym of TEMPORARY.
457462 if parser. parse_keywords ( & [ Keyword :: FILE , Keyword :: FORMAT ] ) {
@@ -498,6 +503,9 @@ impl Dialect for SnowflakeDialect {
498503 if temporary || volatile || transient || iceberg {
499504 back += 1
500505 }
506+ if hybrid {
507+ back += 1
508+ }
501509 for _i in 0 ..back {
502510 parser. prev_token ( ) ;
503511 }
Original file line number Diff line number Diff line change @@ -519,6 +519,7 @@ define_keywords!(
519519 HOUR ,
520520 HOURS ,
521521 HUGEINT ,
522+ HYBRID ,
522523 IAM_ROLE ,
523524 ICEBERG ,
524525 ICEBERG_REST ,
You can’t perform that action at this time.
0 commit comments