Skip to content

Commit 74d3fa5

Browse files
authored
bigquery: Value::Tuple as used in OPTIONS (#37)
1 parent cb82ad9 commit 74d3fa5

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

src/parser/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -5266,6 +5266,7 @@ impl<'a> Parser<'a> {
52665266
}
52675267
Token::LParen => {
52685268
let values = self.parse_comma_separated(Parser::parse_value)?;
5269+
self.expect_token(&Token::RParen)?;
52695270
if values.len() == 1 {
52705271
Ok(values.into_iter().next().unwrap())
52715272
} else {

tests/sqlparser_bigquery.rs

+6
Original file line numberDiff line numberDiff line change
@@ -1314,3 +1314,9 @@ fn test_alter_table_alter_column_set_options() {
13141314
bigquery()
13151315
.verified_stmt("ALTER TABLE mydataset.mytable ALTER COLUMN price SET OPTIONS(description = 'Price per unit')");
13161316
}
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

Comments
 (0)