lens git commit: LENS-1391 : Fix pending review comments on MaxCoveringFactResolver and LeastPartitionResolver

2017-04-18 Thread amareshwari
Repository: lens
Updated Branches:
  refs/heads/master f8a387917 -> c4cd6d84e


LENS-1391 : Fix pending review comments on MaxCoveringFactResolver and 
LeastPartitionResolver


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

Branch: refs/heads/master
Commit: c4cd6d84ec533d84c24717591c890972f5d858cb
Parents: f8a3879
Author: Lavkesh Lahngir 
Authored: Wed Apr 19 11:05:57 2017 +0530
Committer: Amareshwari Sriramadasu 
Committed: Wed Apr 19 11:05:57 2017 +0530

--
 .../lens/cli/commands/LensSchemaCommands.java   | 12 +-
 .../cube/parse/CandidateTablePruneCause.java|  7 ++
 .../lens/cube/parse/LeastPartitionResolver.java | 15 +++--
 .../cube/parse/MaxCoveringFactResolver.java | 23 ++--
 .../lens/cube/parse/StorageCandidate.java   |  5 +++--
 .../server/query/QueryAPIErrorResponseTest.java |  2 +-
 6 files changed, 22 insertions(+), 42 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/lens/blob/c4cd6d84/lens-cli/src/main/java/org/apache/lens/cli/commands/LensSchemaCommands.java
--
diff --git 
a/lens-cli/src/main/java/org/apache/lens/cli/commands/LensSchemaCommands.java 
b/lens-cli/src/main/java/org/apache/lens/cli/commands/LensSchemaCommands.java
index befe4e6..d3f9142 100644
--- 
a/lens-cli/src/main/java/org/apache/lens/cli/commands/LensSchemaCommands.java
+++ 
b/lens-cli/src/main/java/org/apache/lens/cli/commands/LensSchemaCommands.java
@@ -20,19 +20,11 @@ package org.apache.lens.cli.commands;
 
 import java.io.File;
 import java.io.FilenameFilter;
-import java.util.List;
 import java.util.Map;
 import java.util.logging.Level;
 import java.util.logging.Logger;
 
-import org.apache.lens.api.metastore.SchemaTraverser;
-import org.apache.lens.api.metastore.XBaseCube;
-import org.apache.lens.api.metastore.XDerivedCube;
-import org.apache.lens.api.metastore.XDimension;
-import org.apache.lens.api.metastore.XDimensionTable;
-import org.apache.lens.api.metastore.XFactTable;
-import org.apache.lens.api.metastore.XSegmentation;
-import org.apache.lens.api.metastore.XStorage;
+import org.apache.lens.api.metastore.*;
 import org.apache.lens.cli.commands.annotations.UserDocumentation;
 
 import org.springframework.beans.factory.annotation.Autowired;
@@ -42,9 +34,7 @@ import org.springframework.shell.core.annotation.CliCommand;
 import org.springframework.shell.core.annotation.CliOption;
 import org.springframework.shell.support.logging.HandlerUtils;
 import org.springframework.stereotype.Component;
-import org.springframework.util.Assert;
 
-import com.google.common.collect.Lists;
 import com.google.common.collect.Maps;
 
 @Component

http://git-wip-us.apache.org/repos/asf/lens/blob/c4cd6d84/lens-cube/src/main/java/org/apache/lens/cube/parse/CandidateTablePruneCause.java
--
diff --git 
a/lens-cube/src/main/java/org/apache/lens/cube/parse/CandidateTablePruneCause.java
 
b/lens-cube/src/main/java/org/apache/lens/cube/parse/CandidateTablePruneCause.java
index 1c0d356..29af419 100644
--- 
a/lens-cube/src/main/java/org/apache/lens/cube/parse/CandidateTablePruneCause.java
+++ 
b/lens-cube/src/main/java/org/apache/lens/cube/parse/CandidateTablePruneCause.java
@@ -235,6 +235,7 @@ public class CandidateTablePruneCause {
   // if a time dim is not supported by the fact. Would be set if and only if
   // the fact is not partitioned by part col of the time dim and time dim is 
not a dim attribute
   private Set unsupportedTimeDims;
+  private MaxCoveringFactResolver.TimeCovered maxTimeCovered;
   // time covered
   // ranges in which fact is invalid
   private List invalidRanges;
@@ -295,6 +296,12 @@ public class CandidateTablePruneCause {
 return cause;
   }
 
+  public static CandidateTablePruneCause 
lessData(MaxCoveringFactResolver.TimeCovered timeCovered) {
+CandidateTablePruneCause cause = new CandidateTablePruneCause(LESS_DATA);
+cause.setMaxTimeCovered(timeCovered);
+return cause;
+  }
+
   public static CandidateTablePruneCause noColumnPartOfAJoinPath(final 
Collection colSet) {
 CandidateTablePruneCause cause =
   new CandidateTablePruneCause(NO_COLUMN_PART_OF_A_JOIN_PATH);

http://git-wip-us.apache.org/repos/asf/lens/blob/c4cd6d84/lens-cube/src/main/java/org/apache/lens/cube/parse/LeastPartitionResolver.java
--
diff --git 
a/lens-cube/src/main/java/org/apache/lens/cube/parse/LeastPartitionResolver.java
 

lens git commit: LENS-1409 : Remove Unknown.log file before lens startup

2017-04-18 Thread amareshwari
Repository: lens
Updated Branches:
  refs/heads/master b94fc5be3 -> f8a387917


LENS-1409 : Remove Unknown.log file before lens startup


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

Branch: refs/heads/master
Commit: f8a3879172c923d5ceac76c3d853b77eea002ca9
Parents: b94fc5b
Author: Lavkesh Lahngir 
Authored: Tue Apr 18 11:54:31 2017 +0530
Committer: Amareshwari Sriramadasu 
Committed: Tue Apr 18 11:54:31 2017 +0530

--
 tools/conf/server/logback.xml | 2 +-
 tools/scripts/lens-ctl| 6 +-
 2 files changed, 6 insertions(+), 2 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/lens/blob/f8a38791/tools/conf/server/logback.xml
--
diff --git a/tools/conf/server/logback.xml b/tools/conf/server/logback.xml
index 5173321..4f98529 100644
--- a/tools/conf/server/logback.xml
+++ b/tools/conf/server/logback.xml
@@ -100,7 +100,7 @@
   
 
   queryLogId
-  unknown
+  ${query.log.default.id}
 
 
   

http://git-wip-us.apache.org/repos/asf/lens/blob/f8a38791/tools/scripts/lens-ctl
--
diff --git a/tools/scripts/lens-ctl b/tools/scripts/lens-ctl
index 6e1d363..304b4f5 100755
--- a/tools/scripts/lens-ctl
+++ b/tools/scripts/lens-ctl
@@ -136,7 +136,7 @@ start() {
 
   mkdir -p $LENS_LOG_DIR
 
-  JAVA_PROPERTIES="${JAVA_PROPERTIES} $LENS_OPTS $LENS_PROPERTIES 
-Dlens.log.dir=$LENS_LOG_DIR -Dlens.home=${LENS_HOME_DIR} 
-Dconfig.location=$LENS_CONF"
+  JAVA_PROPERTIES="${JAVA_PROPERTIES} $LENS_OPTS $LENS_PROPERTIES 
-Dlens.log.dir=$LENS_LOG_DIR -Dlens.home=${LENS_HOME_DIR} 
-Dconfig.location=$LENS_CONF -Dquery.log.default.id=unknown"
   shift
 
   while [[ ${1} =~ ^\-D ]]; do
@@ -144,6 +144,10 @@ start() {
   shift
   done
 
+  queryLogIDFile="${LENS_LOG_DIR}/unknown.log"
+  if [ -f "$queryLogIDFile" ] ; then
+  rm "$queryLogIDFile"
+  fi
   if [ -n "$opt_verbose" ] ; then
 JAVA_PROPERTIES="-Dlensserver.root.logger=INFO,CONSOLE 
-Dlensserver.request.logger=INFO,CONSOLE ${JAVA_PROPERTIES}"
 ${JAVA_BIN} ${JAVA_PROPERTIES} -cp ${LENSCPPATH} 
org.apache.lens.server.LensServer $*



lens git commit: LENS-1393 : Upgrade javax mail version

2017-04-18 Thread amareshwari
Repository: lens
Updated Branches:
  refs/heads/master ae83caae5 -> b94fc5be3


LENS-1393 : Upgrade javax mail version


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

Branch: refs/heads/master
Commit: b94fc5be3f3338db2200b068a2d92e02b2dfddf5
Parents: ae83caa
Author: Lavkesh Lahngir 
Authored: Tue Apr 18 11:47:08 2017 +0530
Committer: Amareshwari Sriramadasu 
Committed: Tue Apr 18 11:47:08 2017 +0530

--
 pom.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
--


http://git-wip-us.apache.org/repos/asf/lens/blob/b94fc5be/pom.xml
--
diff --git a/pom.xml b/pom.xml
index f1b72a0..4b1974b 100644
--- a/pom.xml
+++ b/pom.xml
@@ -40,7 +40,7 @@
 2.5
 2.0.1
 2.2.12
-1.4
+1.4.7
 
 
 2.6.0