You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lens.apache.org by am...@apache.org on 2015/03/18 13:41:54 UTC
incubator-lens git commit: LENS-416 : Check timeline present property
flag instead of checking whether its present or not (Jaideep Dhok via
amareshwari)
Repository: incubator-lens
Updated Branches:
refs/heads/master 423aec251 -> bbbb096b4
LENS-416 : Check timeline present property flag instead of checking whether its present or not (Jaideep Dhok via amareshwari)
Project: http://git-wip-us.apache.org/repos/asf/incubator-lens/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-lens/commit/bbbb096b
Tree: http://git-wip-us.apache.org/repos/asf/incubator-lens/tree/bbbb096b
Diff: http://git-wip-us.apache.org/repos/asf/incubator-lens/diff/bbbb096b
Branch: refs/heads/master
Commit: bbbb096b4b698ceb11456d01b5fba62f1a633991
Parents: 423aec2
Author: Jaideep Dhok <jd...@apache.org>
Authored: Wed Mar 18 18:11:42 2015 +0530
Committer: Amareshwari Sriramadasu <am...@apache.org>
Committed: Wed Mar 18 18:11:42 2015 +0530
----------------------------------------------------------------------
.../java/org/apache/lens/cube/metadata/CubeMetastoreClient.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-lens/blob/bbbb096b/lens-cube/src/main/java/org/apache/lens/cube/metadata/CubeMetastoreClient.java
----------------------------------------------------------------------
diff --git a/lens-cube/src/main/java/org/apache/lens/cube/metadata/CubeMetastoreClient.java b/lens-cube/src/main/java/org/apache/lens/cube/metadata/CubeMetastoreClient.java
index 10e8ec0..b0d2e63 100644
--- a/lens-cube/src/main/java/org/apache/lens/cube/metadata/CubeMetastoreClient.java
+++ b/lens-cube/src/main/java/org/apache/lens/cube/metadata/CubeMetastoreClient.java
@@ -178,7 +178,8 @@ public class CubeMetastoreClient {
log.info("loading timeline from all partitions for storage table: " + storageTableName);
// not found in memory, try loading from table properties.
Table storageTable = getTable(storageTableName);
- if (storageTable.getParameters().get(MetastoreUtil.getPartitoinTimelineCachePresenceKey()) == null) {
+ if (!"true".equalsIgnoreCase(
+ storageTable.getParameters().get(MetastoreUtil.getPartitoinTimelineCachePresenceKey()))) {
// Not found in table properties either, compute from all partitions of the fact-storage table.
// First make sure all combinations of update period and partition column have an entry even
// if no partitions exist