We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cb82ad9 commit 74d3fa5Copy full SHA for 74d3fa5
src/parser/mod.rs
@@ -5266,6 +5266,7 @@ impl<'a> Parser<'a> {
5266
}
5267
Token::LParen => {
5268
let values = self.parse_comma_separated(Parser::parse_value)?;
5269
+ self.expect_token(&Token::RParen)?;
5270
if values.len() == 1 {
5271
Ok(values.into_iter().next().unwrap())
5272
} else {
tests/sqlparser_bigquery.rs
@@ -1314,3 +1314,9 @@ fn test_alter_table_alter_column_set_options() {
1314
bigquery()
1315
.verified_stmt("ALTER TABLE mydataset.mytable ALTER COLUMN price SET OPTIONS(description = 'Price per unit')");
1316
1317
+
1318
+#[test]
1319
+fn test_alter_set_options_labels_tuple() {
1320
+ bigquery()
1321
+ .verified_stmt("ALTER SCHEMA mydataset SET OPTIONS (labels = [('sensitivity', 'high')])");
1322
+}
0 commit comments