mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-08-03 22:08:16 +00:00
set_tblproperties (#1151)
This commit is contained in:
parent
10cc54e10e
commit
a511c47bd0
3 changed files with 52 additions and 4 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue