CASSANDRA-21415: Document COPY TO limitation for control characters in text columns#4856
Closed
arvindKandpal-ksolves wants to merge 2 commits into
Closed
CASSANDRA-21415: Document COPY TO limitation for control characters in text columns#4856arvindKandpal-ksolves wants to merge 2 commits into
arvindKandpal-ksolves wants to merge 2 commits into
Conversation
bschoening
requested changes
Jun 1, 2026
bschoening
reviewed
Jun 1, 2026
…n text columns COPY TO does not support control characters in text column values per RFC 4180. This patch documents the limitation in the cqlsh reference, including the security risks and alternative tools for data migration. patch by Arvind Kandpal; reviewed by TBD for CASSANDRA-21415
7e24d84 to
8c3e428
Compare
Contributor
Author
|
Hi @bschoening , updated the title and description for the new jira ticket and also update the suggested changes. |
bschoening
approved these changes
Jun 2, 2026
Contributor
|
+1 |
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the Cassandra documentation to clearly describe a known limitation of cqlsh COPY TO: text values containing control/non-printable characters do not round-trip correctly through CSV export/import.
Changes:
- Adds a
NOTEadmonition under theCOPY TOdocumentation describing the control-character round-trip corruption behavior. - Suggests alternative migration tools for data containing such characters.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
COPY TO does not support control characters (such as newlines, carriage
returns, or null bytes) in text column values. Any text column containing
these characters will be silently corrupted on round-trip — COPY TO
succeeds and COPY FROM succeeds, but the re-imported values differ from
the originals.
This patch documents that limitation clearly in the COPY TO section of
the cqlsh reference, in accordance with RFC 4180 which defines CSV
TEXTDATA as printable characters only. Users with such data are directed
to sstableloader for data migration instead.
patch by Arvind Kandpal; reviewed by for CASSANDRA-21415