bschoening commented on code in PR #4856: URL: https://github.com/apache/cassandra/pull/4856#discussion_r3334293687
########## doc/modules/cassandra/pages/managing/tools/cqlsh.adoc: ########## @@ -461,6 +461,17 @@ value `STDOUT` (without single quotes) to print the CSV to stdout. See `shared-copy-options` for options that apply to both `COPY TO` and `COPY FROM`. +[NOTE] +==== +`COPY TO` only supports printable characters in text column values, in +accordance with RFC 4180. Text columns containing control characters +such as newlines (`\n`), carriage returns (`\r`), null bytes (`\x00`), +or other non-printable characters will not round-trip cleanly — values +will be corrupted on re-import via `COPY FROM`. If your data contains Review Comment: There should be some mention of the security risks of binary data. Suggest this after COPY FROM: Beyond data integrity, non-printable characters in CSV output can pose security risks, including CSV injection and other forms of malicious data embedding. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]

