diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-10-16 11:37:39 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-10-16 11:37:39 +0000 |
commit | f10d022e11dcd1015db1a74ce9f4198ebdcb7f40 (patch) | |
tree | ac7bdc1d214a0f97f991cff14e933f4895ee68e1 /sqlglot/dialects/duckdb.py | |
parent | Releasing progress-linux version 18.11.6-1. (diff) | |
download | sqlglot-f10d022e11dcd1015db1a74ce9f4198ebdcb7f40.tar.xz sqlglot-f10d022e11dcd1015db1a74ce9f4198ebdcb7f40.zip |
Merging upstream version 18.13.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'sqlglot/dialects/duckdb.py')
-rw-r--r-- | sqlglot/dialects/duckdb.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sqlglot/dialects/duckdb.py b/sqlglot/dialects/duckdb.py index 352f11a..5b94bcb 100644 --- a/sqlglot/dialects/duckdb.py +++ b/sqlglot/dialects/duckdb.py @@ -133,6 +133,10 @@ class DuckDB(Dialect): "UINTEGER": TokenType.UINT, "USMALLINT": TokenType.USMALLINT, "UTINYINT": TokenType.UTINYINT, + "TIMESTAMP_S": TokenType.TIMESTAMP_S, + "TIMESTAMP_MS": TokenType.TIMESTAMP_MS, + "TIMESTAMP_NS": TokenType.TIMESTAMP_NS, + "TIMESTAMP_US": TokenType.TIMESTAMP, } class Parser(parser.Parser): @@ -321,6 +325,9 @@ class DuckDB(Dialect): exp.DataType.Type.UINT: "UINTEGER", exp.DataType.Type.VARBINARY: "BLOB", exp.DataType.Type.VARCHAR: "TEXT", + exp.DataType.Type.TIMESTAMP_S: "TIMESTAMP_S", + exp.DataType.Type.TIMESTAMP_MS: "TIMESTAMP_MS", + exp.DataType.Type.TIMESTAMP_NS: "TIMESTAMP_NS", } STAR_MAPPING = {**generator.Generator.STAR_MAPPING, "except": "EXCLUDE"} |