-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add quote
and escape
attributes to create csv external table
#8351
Conversation
# Conflicts: # datafusion/physical-plan/src/joins/hash_join_utils.rs
# Conflicts: # datafusion/physical-plan/src/joins/hash_join_utils.rs
WITH HEADER ROW | ||
DELIMITER ',' | ||
OPTIONS ('escape' '\"') | ||
LOCATION '../core/tests/data/escape.csv'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To CREATE EXTERNAL TABLE
syntax coverage, I add this file
quote
& escape
for create external table
quote
& escape
for create external tablequote
and escape
attributes to create csv external table
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @Asura7969 -- this looks great. I had a suggestion related to settings and it would be nice to add a reference to the comments, but I also think we could merge this PR as is and do them as a follow on.
Let me know what you would like to do.
Thanks again!
I will follow your suggestions |
Thank you @Asura7969 ! |
Which issue does this PR close?
Closes #8310.
Rationale for this change
Create csv table in sql mode, support quote & escape
What changes are included in this PR?
Add
quote
andescape
attributes to create csv external tableAre these changes tested?
yes,
csv_files.slt
Are there any user-facing changes?
Add
quote
&escape
attributes to OPTIONS.