Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Added default column limit in CLI. #8

Closed
wants to merge 1 commit into from

2 participants

@boneill42

Added default column limit in CLI.

@Vijay2win Vijay2win referenced this pull request from a commit in Vijay2win/cassandra
@Vijay2win Vijay2win Take #8 61dff50
@Vijay2win Vijay2win referenced this pull request from a commit in Vijay2win/cassandra
@Vijay2win Vijay2win 5051 remove upgradesstable v5
handle bootstrap compaction

Avoid checking for isbootstrap

Take #8

another fix for tests

fix
35c65bd
@jfarrell
Owner

Requested to close all open pull requests by Cassandra PMC

@jfarrell jfarrell closed this
@jfarrell
Owner

Requested to close all open pull requests by Cassandra PMC

@jfarrell jfarrell reopened this
@jfarrell jfarrell closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 28, 2012
  1. @boneill42
This page is out of date. Refresh to see the latest.
Showing with 7 additions and 1 deletion.
  1. +7 −1 src/java/org/apache/cassandra/cli/CliClient.java
View
8 src/java/org/apache/cassandra/cli/CliClient.java
@@ -1320,7 +1320,7 @@ private void executeList(Tree statement)
String rawStartKey = "";
String rawEndKey = "";
int limitCount = Integer.MAX_VALUE; // will reset to default later if it's not specified
- int columnCount = Integer.MAX_VALUE;
+ int columnCount = Integer.MAX_VALUE; // will reset to default later if it's not specified
boolean reversed = false;
// optional arguments: key range and limit
@@ -1386,6 +1386,12 @@ else if (child.getType() == CliParser.NODE_COLUMNS)
limitCount = 100;
sessionState.out.println("Using default limit of 100");
}
+ if (columnCount == Integer.MAX_VALUE)
+ {
+ columnCount = 100;
+ sessionState.out.println("Using default column limit of 100");
+ }
+
CfDef columnFamilyDef = getCfDef(columnFamily);
Something went wrong with that request. Please try again.