@@ -103,9 +103,8 @@ fn parse_create_view_with_options() {
103
103
let sql = trim_sql (
104
104
r#"
105
105
CREATE VIEW myproject.mydataset.newview
106
- (name, age OPTIONS (description = "field age"))
107
- OPTIONS
108
- (expiration_timestamp = TIMESTAMP_ADD(CURRENT_TIMESTAMP(), INTERVAL 48 HOUR),
106
+ (name, age OPTIONS(description = "field age"))
107
+ OPTIONS(expiration_timestamp = TIMESTAMP_ADD(CURRENT_TIMESTAMP(), INTERVAL 48 HOUR),
109
108
friendly_name = "newview",
110
109
description = "a view that expires in 2 days",
111
110
labels = [("org_unit", "development")])
@@ -148,7 +147,7 @@ fn parse_create_view_with_options() {
148
147
query. to_string( )
149
148
) ;
150
149
assert_eq ! (
151
- r#"OPTIONS (expiration_timestamp = TIMESTAMP_ADD(CURRENT_TIMESTAMP(), INTERVAL 48 HOUR), friendly_name = "newview", description = "a view that expires in 2 days", labels = [("org_unit", "development")])"# ,
150
+ r#"OPTIONS(expiration_timestamp = TIMESTAMP_ADD(CURRENT_TIMESTAMP(), INTERVAL 48 HOUR), friendly_name = "newview", description = "a view that expires in 2 days", labels = [("org_unit", "development")])"# ,
152
151
options. to_string( )
153
152
) ;
154
153
let CreateTableOptions :: Options ( options) = options else {
@@ -173,12 +172,11 @@ fn parse_create_table_with_options() {
173
172
let sql = trim_sql (
174
173
r#"
175
174
CREATE TABLE mydataset.newtable
176
- (x INT64 NOT NULL OPTIONS (description = "field x"),
177
- y BOOL OPTIONS (description = "field y"))
175
+ (x INT64 NOT NULL OPTIONS(description = "field x"),
176
+ y BOOL OPTIONS(description = "field y"))
178
177
179
178
PARTITION BY _PARTITIONDATE
180
- CLUSTER BY userid, age
181
- OPTIONS(partition_expiration_days = 1,
179
+ CLUSTER BY userid, age OPTIONS(partition_expiration_days = 1,
182
180
description = "table option description")
183
181
"# ,
184
182
) ;
@@ -258,8 +256,8 @@ fn parse_create_table_with_options() {
258
256
let sql = trim_sql (
259
257
r#"
260
258
CREATE TABLE mydataset.newtable
261
- (x INT64 NOT NULL OPTIONS (description = "field x"),
262
- y BOOL OPTIONS (description = "field y"))
259
+ (x INT64 NOT NULL OPTIONS(description = "field x"),
260
+ y BOOL OPTIONS(description = "field y"))
263
261
264
262
CLUSTER BY userid
265
263
OPTIONS(partition_expiration_days = 1,
0 commit comments