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/01/21 13:45:51 UTC

incubator-lens git commit: LENS-210 : Fixes ArrayIndexOutOfBoundsException while dropping partitions from cli (Rajat Khandelwal via amareshwari)

Repository: incubator-lens
Updated Branches:
  refs/heads/master acdfd299f -> a4f7c6923


LENS-210 : Fixes ArrayIndexOutOfBoundsException while dropping partitions from cli (Rajat Khandelwal 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/a4f7c692
Tree: http://git-wip-us.apache.org/repos/asf/incubator-lens/tree/a4f7c692
Diff: http://git-wip-us.apache.org/repos/asf/incubator-lens/diff/a4f7c692

Branch: refs/heads/master
Commit: a4f7c692378d22999c5a87c220b4f5ff07a455ab
Parents: acdfd29
Author: Amareshwari Sriramdasu <am...@inmobi.com>
Authored: Wed Jan 21 18:15:43 2015 +0530
Committer: Amareshwari Sriramdasu <am...@inmobi.com>
Committed: Wed Jan 21 18:15:43 2015 +0530

----------------------------------------------------------------------
 .../main/java/org/apache/lens/cli/commands/LensFactCommands.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-lens/blob/a4f7c692/lens-cli/src/main/java/org/apache/lens/cli/commands/LensFactCommands.java
----------------------------------------------------------------------
diff --git a/lens-cli/src/main/java/org/apache/lens/cli/commands/LensFactCommands.java b/lens-cli/src/main/java/org/apache/lens/cli/commands/LensFactCommands.java
index 71848f8..eb966ed 100644
--- a/lens-cli/src/main/java/org/apache/lens/cli/commands/LensFactCommands.java
+++ b/lens-cli/src/main/java/org/apache/lens/cli/commands/LensFactCommands.java
@@ -313,7 +313,7 @@ public class LensFactCommands extends BaseLensCommand implements CommandMarker {
       result = getClient().dropAllPartitionsOfFact(pair[0], pair[1]);
     }
     if (pair.length == 3) {
-      result = getClient().dropAllPartitionsOfFact(pair[0], pair[1], pair[3]);
+      result = getClient().dropAllPartitionsOfFact(pair[0], pair[1], pair[2]);
     } else {
       return "Syntax error, please try in following "
           + "format. fact drop partitions <table> <storage> [partition values]";