You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by ku...@apache.org on 2020/03/06 10:35:35 UTC

[hive] branch master updated: HIVE-22968: Set hive.parquet.timestamp.time.unit default to micros (Karen Coppage via Marta Kuczora)

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

kuczoram pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hive.git


The following commit(s) were added to refs/heads/master by this push:
     new 10c5597  HIVE-22968: Set hive.parquet.timestamp.time.unit default to micros (Karen Coppage via Marta Kuczora)
10c5597 is described below

commit 10c5597d17600ba65b9e9e07eb969be3fed3fbb2
Author: Karen Coppage <kc...@gmail.com>
AuthorDate: Fri Mar 6 11:34:53 2020 +0100

    HIVE-22968: Set hive.parquet.timestamp.time.unit default to micros (Karen Coppage via Marta Kuczora)
---
 common/src/java/org/apache/hadoop/hive/conf/HiveConf.java               | 2 +-
 .../org/apache/hadoop/hive/ql/io/parquet/TestHiveSchemaConverter.java   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/common/src/java/org/apache/hadoop/hive/conf/HiveConf.java b/common/src/java/org/apache/hadoop/hive/conf/HiveConf.java
index 7ea2de9..12f4822 100644
--- a/common/src/java/org/apache/hadoop/hive/conf/HiveConf.java
+++ b/common/src/java/org/apache/hadoop/hive/conf/HiveConf.java
@@ -2036,7 +2036,7 @@ public class HiveConf extends Configuration {
     HIVE_PARQUET_WRITE_INT64_TIMESTAMP("hive.parquet.write.int64.timestamp", false,
         "Write parquet timestamps as int64/LogicalTypes instead of int96/OriginalTypes. Note:" +
         "Timestamps will be time zone agnostic (NEVER converted to a different time zone)."),
-    HIVE_PARQUET_TIMESTAMP_TIME_UNIT("hive.parquet.timestamp.time.unit", "millis",
+    HIVE_PARQUET_TIMESTAMP_TIME_UNIT("hive.parquet.timestamp.time.unit", "micros",
         new StringSet("nanos", "micros", "millis"),
         "Store parquet int64/LogicalTypes timestamps in this time unit."),
 
diff --git a/ql/src/test/org/apache/hadoop/hive/ql/io/parquet/TestHiveSchemaConverter.java b/ql/src/test/org/apache/hadoop/hive/ql/io/parquet/TestHiveSchemaConverter.java
index 0f3ca6e..4e176a0 100644
--- a/ql/src/test/org/apache/hadoop/hive/ql/io/parquet/TestHiveSchemaConverter.java
+++ b/ql/src/test/org/apache/hadoop/hive/ql/io/parquet/TestHiveSchemaConverter.java
@@ -413,7 +413,7 @@ public class TestHiveSchemaConverter {
     testLogicalTypeAnnotation("boolean", "a", null, conf);
     testLogicalTypeAnnotation("binary", "a", null, conf);
     testLogicalTypeAnnotation("timestamp", "a",
-        LogicalTypeAnnotation.timestampType(false, LogicalTypeAnnotation.TimeUnit.MILLIS), conf);
+        LogicalTypeAnnotation.timestampType(false, LogicalTypeAnnotation.TimeUnit.MICROS), conf);
     testLogicalTypeAnnotation("char(3)", "a", LogicalTypeAnnotation.stringType(), conf);
     testLogicalTypeAnnotation("varchar(30)", "a", LogicalTypeAnnotation.stringType(), conf);
     testLogicalTypeAnnotation("decimal(7,2)", "a", LogicalTypeAnnotation.decimalType(2, 7), conf);