trafodion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From se...@apache.org
Subject [7/8] trafodion git commit: [TRAFODION-3234] Refactor hive meta calls to be less resource intensive to support hive partitions if needed
Date Wed, 05 Dec 2018 21:54:50 GMT
[TRAFODION-3234] Refactor hive meta calls to be less resource intensive to support hive partitions
if needed

Fixed a bug where createTime is not converted into millisecs before comparing with directory
timestamp in millisecs


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

Branch: refs/heads/master
Commit: d8388f8008c96bd11084343553254eaba75cc45d
Parents: 7dbd934
Author: selvaganesang <selva.govindarajan@esgyn.com>
Authored: Wed Dec 5 06:10:56 2018 +0000
Committer: selvaganesang <selva.govindarajan@esgyn.com>
Committed: Wed Dec 5 06:10:56 2018 +0000

----------------------------------------------------------------------
 core/sql/executor/hiveHook.cpp                           | 3 ---
 core/sql/src/main/java/org/trafodion/sql/HiveClient.java | 3 +++
 2 files changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafodion/blob/d8388f80/core/sql/executor/hiveHook.cpp
----------------------------------------------------------------------
diff --git a/core/sql/executor/hiveHook.cpp b/core/sql/executor/hiveHook.cpp
index 234249a..ebc7cc0 100644
--- a/core/sql/executor/hiveHook.cpp
+++ b/core/sql/executor/hiveHook.cpp
@@ -380,9 +380,6 @@ NABoolean HiveMetaData::validate(hive_tbl_desc *hDesc)
    if ((retCode == HVC_DONE) || (currentRedefTime != hDesc->redeftime())) 
      return FALSE;
   
-   // object has been validated a short time ago
-   hDesc->setRedeftime(currentRedefTime);
-   
    return TRUE;
 }
 

http://git-wip-us.apache.org/repos/asf/trafodion/blob/d8388f80/core/sql/src/main/java/org/trafodion/sql/HiveClient.java
----------------------------------------------------------------------
diff --git a/core/sql/src/main/java/org/trafodion/sql/HiveClient.java b/core/sql/src/main/java/org/trafodion/sql/HiveClient.java
index 67a4142..846df71 100644
--- a/core/sql/src/main/java/org/trafodion/sql/HiveClient.java
+++ b/core/sql/src/main/java/org/trafodion/sql/HiveClient.java
@@ -173,6 +173,9 @@ public class HiveClient {
             if (rfTime != null)
                 redefTime = Long.parseLong(rfTime);
         }
+        // createTime is in seconds
+        // Assuming DDL_TIME is also in seconds
+        redefTime *= 1000;
         // Get the lastest partition/file timestamp 
         int numPartKeys = table.getPartitionKeysSize();
         String rootDir = table.getSd().getLocation();


Mime
View raw message