Skip to content

Commit 8fd44f6

Browse files
JanKaulclaude
andcommitted
Fix TIMESTAMP_NTZ precision in CTAS test canonical form
The canonical form was incorrectly dropping the precision specifier. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 75be621 commit 8fd44f6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/sqlparser_snowflake.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ fn test_snowflake_create_table() {
4848
fn test_snowflake_create_table_timestamp_ntz_precision_ctas_values() {
4949
let sql = "CREATE TABLE t (x TIMESTAMP_NTZ(3)) AS SELECT * FROM VALUES ('2025-04-09T21:11:23')";
5050
let canonical =
51-
"CREATE TABLE t (x TIMESTAMP_NTZ) AS SELECT * FROM (VALUES ('2025-04-09T21:11:23'))";
51+
"CREATE TABLE t (x TIMESTAMP_NTZ(3)) AS SELECT * FROM (VALUES ('2025-04-09T21:11:23'))";
5252
snowflake().one_statement_parses_to(sql, canonical);
5353
}
5454

0 commit comments

Comments
 (0)