Skip to content
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 test for reading back file created with COPY ... OPTIONS (FORMAT..) options #9753

Merged
merged 3 commits into from
Apr 1, 2024

Conversation

alamb
Copy link
Contributor

@alamb alamb commented Mar 23, 2024

Which issue does this PR close?

Follow on to #9744

Rationale for this change

The tests in #9744 show the syntax works, but doesn't verify that the format is actually used (rather than say, being ignored)

What changes are included in this PR?

Add a test to write to a file with a non standard extension and then read it back

Are these changes tested?

Are there any user-facing changes?

no, tests only

@github-actions github-actions bot added the sqllogictest SQL Logic Tests (.slt) label Mar 23, 2024
@alamb alamb changed the title Add test for reading back file created with FORMAT options Add test for reading back file created with COPY ... OPTIONS (FORMAT..) options Mar 23, 2024
@alamb
Copy link
Contributor Author

alamb commented Mar 29, 2024

@metesynnada here is another small PR with tests that I wonder if you have time to review?

Copy link
Contributor

@metesynnada metesynnada left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we phase out this usage at some point, or continue to support both options going forward?

@alamb
Copy link
Contributor Author

alamb commented Apr 1, 2024

Should we phase out this usage at some point, or continue to support both options going forward?

That is a good question. I filed #9905 to discuss. I don't have a strong opinion

@alamb alamb merged commit b50f3aa into apache:main Apr 1, 2024
24 checks passed
tinfoil-knight added a commit to tinfoil-knight/arrow-datafusion that referenced this pull request Apr 7, 2024
alamb pushed a commit that referenced this pull request Apr 8, 2024
* Revert "Add test for reading back file created with FORMAT options (#9753)"

This reverts commit b50f3aa.

* Revert "support format in options of COPY command (#9744)"

This reverts commit 40fb1b8.

* update docs and example to remove old syntax
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sqllogictest SQL Logic Tests (.slt)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants