You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by jc...@apache.org on 2017/10/11 15:50:16 UTC

hive git commit: HIVE-16677 : CTAS with no data fails in Druid (Jesus Camacho Rodriguez via Ashutosh Chauhan) (addendum)

Repository: hive
Updated Branches:
  refs/heads/master d4d101594 -> fb4aa88a5


HIVE-16677 : CTAS with no data fails in Druid (Jesus Camacho Rodriguez via Ashutosh Chauhan) (addendum)


Project: http://git-wip-us.apache.org/repos/asf/hive/repo
Commit: http://git-wip-us.apache.org/repos/asf/hive/commit/fb4aa88a
Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/fb4aa88a
Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/fb4aa88a

Branch: refs/heads/master
Commit: fb4aa88a548b30958cdd6f171541d7b43a9f342b
Parents: d4d1015
Author: Jesus Camacho Rodriguez <jc...@apache.org>
Authored: Wed Oct 11 08:50:04 2017 -0700
Committer: Jesus Camacho Rodriguez <jc...@apache.org>
Committed: Wed Oct 11 08:50:04 2017 -0700

----------------------------------------------------------------------
 .../org/apache/hadoop/hive/druid/DruidStorageHandlerUtils.java  | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hive/blob/fb4aa88a/druid-handler/src/java/org/apache/hadoop/hive/druid/DruidStorageHandlerUtils.java
----------------------------------------------------------------------
diff --git a/druid-handler/src/java/org/apache/hadoop/hive/druid/DruidStorageHandlerUtils.java b/druid-handler/src/java/org/apache/hadoop/hive/druid/DruidStorageHandlerUtils.java
index e36c207..fbceaac 100644
--- a/druid-handler/src/java/org/apache/hadoop/hive/druid/DruidStorageHandlerUtils.java
+++ b/druid-handler/src/java/org/apache/hadoop/hive/druid/DruidStorageHandlerUtils.java
@@ -390,9 +390,8 @@ public final class DruidStorageHandlerUtils {
                 // If we are overwriting, we disable existing sources
                 disableDataSourceWithHandle(handle, metadataStorageTablesConfig, dataSource);
 
-                // When overwriting or when we do not have segments, we can just start with empty timeline,
-                // as we are overwriting segments with new versions and not inserting new segments at all,
-                // respectively
+                // When overwriting, we just start with empty timeline,
+                // as we are overwriting segments with new versions
                 timeline = new VersionedIntervalTimeline<>(Ordering.natural());
               } else {
                 // Append Mode