Skip to content

Commit

Permalink
add more complex case
Browse files Browse the repository at this point in the history
  • Loading branch information
ohaibbq committed Jun 13, 2024
1 parent 1fa8197 commit e02aa78
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion query_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5879,13 +5879,14 @@ CREATE TEMP TABLE t1 (
id INT64,
name STRING DEFAULT LOWER("DEFAULT EXPRESSION"),
ts DATE DEFAULT DATE "2024-04-14",
test_ts_complex INT64 DEFAULT EXTRACT(YEAR FROM CURRENT_TIMESTAMP()) - MOD(EXTRACT(YEAR FROM CURRENT_TIMESTAMP()), 2000),
state STRING DEFAULT "' escape test"
);
INSERT INTO t1 (id) VALUES (1);
SELECT * FROM t1;
`,
expectedRows: [][]interface{}{
{int64(1), "default expression", "2024-04-14", "' escape test"},
{int64(1), "default expression", "2024-04-14", int64(2000), "' escape test"},
},
},
} {
Expand Down

0 comments on commit e02aa78

Please sign in to comment.