Skip to content

Commit afc556f

Browse files
Snowflake: accept and discard HYBRID table modifier
1 parent 33afa1c commit afc556f

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

src/dialect/snowflake.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff 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
}

src/keywords.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -519,6 +519,7 @@ define_keywords!(
519519
HOUR,
520520
HOURS,
521521
HUGEINT,
522+
HYBRID,
522523
IAM_ROLE,
523524
ICEBERG,
524525
ICEBERG_REST,

0 commit comments

Comments
 (0)