-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
COPY fails on cli with Invalid statement #9927
Comments
The documentation is outdated.
This is how your query would look now:
|
Note to Maintainers: |
Just tested and |
@hveiga I think we should keep this issue open until the documentation is updated with the latest syntax. |
Makes sense. Re-opening. |
Looks like I missed a spot in #9754, sorry about that. The new syntax is documented here: https://arrow.apache.org/datafusion/user-guide/sql/dml.html#copy |
I'll make a PR |
Describe the bug
I downloaded https://dist.apache.org/repos/dist/dev/arrow/apache-arrow-datafusion-37.0.0-rc2/ to test the new
partition_by
feature. I builtdatafusion-cli
by runningcargo build --release
underdatafusion-cli
.The use case is simple: load a parquet file and create multiple parquet files using hive-partitioned partitions.
When I try to run the documented
COPY
command on https://arrow.apache.org/datafusion/user-guide/sql/write_options.html I get an error.To Reproduce
datafusion-cli
from https://dist.apache.org/repos/dist/dev/arrow/apache-arrow-datafusion-37.0.0-rc2/../datafusion-cli
.🤔 Invalid statement: sql parser error: Unexpected token (
Expected behavior
Have the
COPY
statement generate the expected hive-partitioned parquet files.Additional context
I don't know if I might be having an issue with my SQL statements or the
COPY
documentation is incorrect. Still, I thought it was good to report before37.0.0
gets released. #9682Thank you!
The text was updated successfully, but these errors were encountered: