You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iceberg.apache.org by bl...@apache.org on 2019/07/29 19:09:26 UTC

[incubator-iceberg] branch master updated: Convert Iceberg time type to Hive string type (#325)

This is an automated email from the ASF dual-hosted git repository.

blue pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-iceberg.git


The following commit(s) were added to refs/heads/master by this push:
     new c36740b  Convert Iceberg time type to Hive string type (#325)
c36740b is described below

commit c36740be1eed8f1773b9f48bcf498f56dc784d84
Author: David Phillips <da...@acz.org>
AuthorDate: Mon Jul 29 12:09:21 2019 -0700

    Convert Iceberg time type to Hive string type (#325)
---
 hive/src/main/java/org/apache/iceberg/hive/HiveTypeConverter.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hive/src/main/java/org/apache/iceberg/hive/HiveTypeConverter.java b/hive/src/main/java/org/apache/iceberg/hive/HiveTypeConverter.java
index 31f3b73..dc50c7a 100644
--- a/hive/src/main/java/org/apache/iceberg/hive/HiveTypeConverter.java
+++ b/hive/src/main/java/org/apache/iceberg/hive/HiveTypeConverter.java
@@ -45,7 +45,7 @@ public final class HiveTypeConverter {
       case DATE:
         return "date";
       case TIME:
-        throw new UnsupportedOperationException("Hive does not support time fields");
+        return "string";
       case TIMESTAMP:
         return "timestamp";
       case STRING: