Repository: cassandra Updated Branches: refs/heads/trunk 6ad51477b -> dadc206c6
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/trunk Commit: 061ea33fde3cfdfbbfe668a9c5921892eecf7b1b Parents: c6ba2be Author: Philip Thompson <[email protected]> Authored: Tue Mar 24 11:41:12 2015 -0500 Committer: Tyler Hobbs <[email protected]> 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
