You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by ty...@apache.org on 2015/03/24 17:41:51 UTC
cassandra git commit: cqlsh: allow configuring CSV field size limit
Repository: cassandra
Updated Branches:
refs/heads/cassandra-2.0 c6ba2bedd -> 061ea33fd
cqlsh: allow configuring CSV field size limit
Patch by Philip Thompson; reviewed by Tyler Hobbs for CASSANDRA-8934
Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/061ea33f
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/061ea33f
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/061ea33f
Branch: refs/heads/cassandra-2.0
Commit: 061ea33fde3cfdfbbfe668a9c5921892eecf7b1b
Parents: c6ba2be
Author: Philip Thompson <pt...@gmail.com>
Authored: Tue Mar 24 11:41:12 2015 -0500
Committer: Tyler Hobbs <ty...@datastax.com>
Committed: Tue Mar 24 11:41:12 2015 -0500
----------------------------------------------------------------------
CHANGES.txt | 2 ++
bin/cqlsh | 3 +++
2 files changed, 5 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cassandra/blob/061ea33f/CHANGES.txt
----------------------------------------------------------------------
diff --git a/CHANGES.txt b/CHANGES.txt
index 863f145..2073b00 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -1,4 +1,6 @@
2.0.14:
+ * (cqlsh) Allow increasing CSV field size limit through
+ cqlshrc config option (CASSANDRA-8934)
* Stop logging range tombstones when exceeding the threshold
(CASSANDRA-8559)
* Fix NullPointerException when nodetool getendpoints is run
http://git-wip-us.apache.org/repos/asf/cassandra/blob/061ea33f/bin/cqlsh
----------------------------------------------------------------------
diff --git a/bin/cqlsh b/bin/cqlsh
index 6be9b78..a165dca 100755
--- a/bin/cqlsh
+++ b/bin/cqlsh
@@ -1964,6 +1964,8 @@ def read_options(cmdlineargs, environment):
DEFAULT_TIME_FORMAT)
optvalues.float_precision = option_with_default(configs.getint, 'ui', 'float_precision',
DEFAULT_FLOAT_PRECISION)
+ optvalues.field_size_limit = option_with_default(configs.getint, 'csv', 'field_size_limit', csv.field_size_limit())
+
optvalues.debug = False
optvalues.file = None
optvalues.tty = sys.stdin.isatty()
@@ -2046,6 +2048,7 @@ def main(options, hostname, port):
setup_cqlruleset(options.cqlmodule)
setup_cqldocs(options.cqlmodule)
init_history()
+ csv.field_size_limit(options.field_size_limit)
if options.file is None:
stdin = None