We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Summary
As arrow2 has infer_schema: Parquet: https://github.com/jorgecarleitao/arrow2/blob/5725fa3c18830f88ed0ed67067dda5c1d2080dca/src/io/parquet/read/schema/mod.rs#L23-L31
infer_schema
CSV: https://github.com/jorgecarleitao/arrow2/blob/79b87b629d8fdc3fa40b5ad7abc3889c5102a52b/src/io/csv/read/infer_schema.rs#L15
We can add a function INFER_SCHEMA to do the schema infer, syntax like:
INFER_SCHEMA
INFER_SCHEMA( LOCATION => '{ internalStage | externalStage }' , FILE_FORMAT => '<format_name>' )
example(from snow):
select * from infer_schema(location=>'@mystage/geography/cities.parquet' , file_format=>'parquet') +-------------+---------+----------+---------------------+--------------------------+ | COLUMN_NAME | TYPE | NULLABLE | EXPRESSION | FILENAMES | |-------------+---------+----------+---------------------+--------------------------| | continent | TEXT | True | $1:continent::TEXT | geography/cities.parquet | | country | VARIANT | True | $1:country::VARIANT | geography/cities.parquet | +-------------+---------+----------+---------------------+--------------------------+
Reference: https://docs.snowflake.com/en/sql-reference/functions/infer_schema.html
The text was updated successfully, but these errors were encountered:
cc @Xuanwo
Sorry, something went wrong.
I'm taking this issue now.
Already implemented by @youngsofun
Xuanwo
No branches or pull requests
Summary
As arrow2 has
infer_schema
:Parquet:
https://github.com/jorgecarleitao/arrow2/blob/5725fa3c18830f88ed0ed67067dda5c1d2080dca/src/io/parquet/read/schema/mod.rs#L23-L31
CSV:
https://github.com/jorgecarleitao/arrow2/blob/79b87b629d8fdc3fa40b5ad7abc3889c5102a52b/src/io/csv/read/infer_schema.rs#L15
We can add a function
INFER_SCHEMA
to do the schema infer, syntax like:example(from snow):
Reference:
https://docs.snowflake.com/en/sql-reference/functions/infer_schema.html
The text was updated successfully, but these errors were encountered: