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

Adding pragma option for parquet binary as string #2602

Merged
merged 1 commit into from
Nov 22, 2021

Conversation

pdet
Copy link
Contributor

@pdet pdet commented Nov 15, 2021

Binary columns are read from parquet files as strings by default:

PRAGMA enable_parquet_binary_as_string

To disable it:

PRAGMA disable_parquet_binary_as_string

If the binary_as_string parameter from the Parquet Function is used, that is used indiferent of the value set in the pragma

PRAGMA enable_parquet_binary_as_string

-- This will read binaries as binaries
SELECT * FROM parquet_scan('data/parquet-testing/binary_string.parquet',binary_as_string=False)

Copy link
Collaborator

@Mytherin Mytherin left a comment

Choose a reason for hiding this comment

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

Thanks! Looks good.

@Mytherin Mytherin merged commit c51dafb into duckdb:master Nov 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants