cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tylerho...@apache.org
Subject [1/2] cassandra git commit: cqlsh: allow configuring CSV field size limit
Date Tue, 24 Mar 2015 16:42:50 GMT
Repository: cassandra
Updated Branches:
  refs/heads/cassandra-2.1 6b979f319 -> 9d2b2730e


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.1
Commit: 061ea33fde3cfdfbbfe668a9c5921892eecf7b1b
Parents: c6ba2be
Author: Philip Thompson <ptnapoleon@gmail.com>
Authored: Tue Mar 24 11:41:12 2015 -0500
Committer: Tyler Hobbs <tyler@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


Mime
View raw message