You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by bl...@apache.org on 2019/12/16 18:27:24 UTC

[flink] branch release-1.10 updated: [FLINK-15128][hive][doc] Document support for Hive timestamp type

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

bli pushed a commit to branch release-1.10
in repository https://gitbox.apache.org/repos/asf/flink.git


The following commit(s) were added to refs/heads/release-1.10 by this push:
     new 3f65a3f  [FLINK-15128][hive][doc] Document support for Hive timestamp type
3f65a3f is described below

commit 3f65a3fe48970d338ca79a2f0ee7125f4376f617
Author: Rui Li <li...@apache.org>
AuthorDate: Thu Dec 12 17:46:49 2019 +0800

    [FLINK-15128][hive][doc] Document support for Hive timestamp type
    
    this closes #10543.
---
 docs/dev/table/hive/index.md    | 3 ++-
 docs/dev/table/hive/index.zh.md | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/docs/dev/table/hive/index.md b/docs/dev/table/hive/index.md
index 7425467..879e9e9 100644
--- a/docs/dev/table/hive/index.md
+++ b/docs/dev/table/hive/index.md
@@ -341,7 +341,7 @@ Currently `HiveCatalog` supports most Flink data types with the following mappin
         <td class="text-center">DATE</td>
     </tr>
     <tr>
-        <td class="text-center">TIMESTAMP</td>
+        <td class="text-center">TIMESTAMP(9)</td>
         <td class="text-center">TIMESTAMP</td>
     </tr>
     <tr>
@@ -372,5 +372,6 @@ Currently `HiveCatalog` supports most Flink data types with the following mappin
 Note that:
 
 * Flink doesn't support Hive's `UNION` type is not supported
+* Hive's `TIMESTAMP` always has precision 9 and doesn't support other precisions. As a result, `HiveCatalog` cannot store `TIMESTAMP` columns whose precisions are not 9. Hive UDFs, on the other hand, can process `TIMESTAMP` values with a precision <= 9.
 * Hive doesn't support Flink's `TIMESTAMP_WITH_TIME_ZONE`, `TIMESTAMP_WITH_LOCAL_TIME_ZONE`, and `MULTISET`
 * Flink's `INTERVAL` type cannot be mapped to Hive `INTERVAL` type yet
diff --git a/docs/dev/table/hive/index.zh.md b/docs/dev/table/hive/index.zh.md
index 7425467..879e9e9 100644
--- a/docs/dev/table/hive/index.zh.md
+++ b/docs/dev/table/hive/index.zh.md
@@ -341,7 +341,7 @@ Currently `HiveCatalog` supports most Flink data types with the following mappin
         <td class="text-center">DATE</td>
     </tr>
     <tr>
-        <td class="text-center">TIMESTAMP</td>
+        <td class="text-center">TIMESTAMP(9)</td>
         <td class="text-center">TIMESTAMP</td>
     </tr>
     <tr>
@@ -372,5 +372,6 @@ Currently `HiveCatalog` supports most Flink data types with the following mappin
 Note that:
 
 * Flink doesn't support Hive's `UNION` type is not supported
+* Hive's `TIMESTAMP` always has precision 9 and doesn't support other precisions. As a result, `HiveCatalog` cannot store `TIMESTAMP` columns whose precisions are not 9. Hive UDFs, on the other hand, can process `TIMESTAMP` values with a precision <= 9.
 * Hive doesn't support Flink's `TIMESTAMP_WITH_TIME_ZONE`, `TIMESTAMP_WITH_LOCAL_TIME_ZONE`, and `MULTISET`
 * Flink's `INTERVAL` type cannot be mapped to Hive `INTERVAL` type yet