[
https://issues.apache.org/jira/browse/CASSANDRA-18787?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17761374#comment-17761374
]
Brad Schoening commented on CASSANDRA-18787:
--------------------------------------------
Upon looking into this further, it would seem that the [copy
options|https://docs.datastax.com/en/cql-oss/3.x/cql/cql_reference/cqlshCopy.html#Settingcopyoptions]
for CVS in COPY FROM/TO are now provided as args to the copy command (instead
of cqlsh).
{code:java}
cqlsh> help copy from
Available common COPY options and defaults:
DELIMITER=',' - character that appears between records
QUOTE='"' - quoting character to be used to quote fields
ESCAPE='\' - character to appear before the QUOTE char
when quoted
HEADER=false - whether to ignore the first line
... etc
{code}
When copyutil was created with Cassandra 2.1, it seems they didn't include
field_size_limit as one of the options.
> Replace obsolete Python functions
> ---------------------------------
>
> Key: CASSANDRA-18787
> URL: https://issues.apache.org/jira/browse/CASSANDRA-18787
> Project: Cassandra
> Issue Type: Improvement
> Components: CQL/Interpreter
> Reporter: Brad Schoening
> Assignee: Brad Schoening
> Priority: Low
> Fix For: 5.x
>
>
> # Python's stdlib datetime.timezone.utc can replace the custom UTC timezone
> in pylib/cqlshlib/util.py.
> # Removed unused attributes and functions:
> ## field_size _limit
> ## trim_if_present()
> ## maybe_ensure_text()
> # Simplify cql_version handling into a settor
> Functionality should remain the same while simplifying the code by
> eliminating ~60 lines.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]