summaryrefslogtreecommitdiffstats
path: root/sqlglot/dialects/hive.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2022-12-22 07:22:56 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2022-12-22 07:22:56 +0000
commit85bf7f61d00f60343363b7c6dc98f2d0b5a8e621 (patch)
tree76c8712faaa2753e3997de25eb3a69c3ec450979 /sqlglot/dialects/hive.py
parentAdding upstream version 10.2.6. (diff)
downloadsqlglot-85bf7f61d00f60343363b7c6dc98f2d0b5a8e621.tar.xz
sqlglot-85bf7f61d00f60343363b7c6dc98f2d0b5a8e621.zip
Adding upstream version 10.2.9.upstream/10.2.9
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'sqlglot/dialects/hive.py')
-rw-r--r--sqlglot/dialects/hive.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/sqlglot/dialects/hive.py b/sqlglot/dialects/hive.py
index 70c1c6c..8d6e1ae 100644
--- a/sqlglot/dialects/hive.py
+++ b/sqlglot/dialects/hive.py
@@ -250,6 +250,7 @@ class Hive(Dialect):
TYPE_MAPPING = {
**generator.Generator.TYPE_MAPPING,
exp.DataType.Type.TEXT: "STRING",
+ exp.DataType.Type.DATETIME: "TIMESTAMP",
exp.DataType.Type.VARBINARY: "BINARY",
}