sql: support COPY ... (ENCODING ...)
Support the ENCODING option for COPY.
This specifies how the file is encoded. In CRDB, we can only can support 'utf8', so if someone specifies a different encoding, the command should return an error.
https://www.postgresql.org/docs/current/sql-copy.html
See https://github.com/cockroachdb/cockroach/pull/59790 for an example of how to add an option.
Epic CRDB-18320
Jira issue: CRDB-33390
Hi! Can I take it?
@rafiss
sure, feel free to submit a PR. see these guidelines: https://cockroachlabs.atlassian.net/wiki/spaces/CRDB/pages/73072641
Adding this issue related to encoding. https://github.com/cockroachdb/cockroach/issues/35882 This seems a bit different though as this is between files and tables.
@moohbr Are you still working on it?
@rafiss Can I take up this issue?
sure, feel free to submit a PR! see these guidelines: https://cockroachlabs.atlassian.net/wiki/spaces/CRDB/pages/73072641
@jerinthomas1404 are you already working on this one?
@lpessoa I haven't started
@lpessoa , @mendaxjerin , @jerinthomas1404 , Has this task been started?
@lpessoa , @mendaxjerin , @jerinthomas1404 , Has this task been started?
I have already started on some code. Already implemented the changes in the grammar file and in the copy_from and copy (followed the sample provided by @rafiss )
Gonna look at tests next
You can complete it. I'll take up something else