set_tblproperties (#1151)

This commit is contained in:
Jonathan Lehto 2024-03-01 13:42:21 -05:00 committed by GitHub
parent 10cc54e10e
commit a511c47bd0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 52 additions and 4 deletions

View file

@ -3539,6 +3539,23 @@ fn parse_alter_table() {
}
_ => unreachable!(),
}
let set_table_properties = "ALTER TABLE tab SET TBLPROPERTIES('classification' = 'parquet')";
match alter_table_op(verified_stmt(set_table_properties)) {
AlterTableOperation::SetTblProperties { table_properties } => {
assert_eq!(
table_properties,
[SqlOption {
name: Ident {
value: "classification".to_string(),
quote_style: Some('\'')
},
value: Expr::Value(Value::SingleQuotedString("parquet".to_string())),
}],
);
}
_ => unreachable!(),
}
}
#[test]