Skip to content

Conversation

Mytherin
Copy link
Collaborator

Follow-up to #17071

This PR extends the OpenFileInfo struct with ExtendedOpenFileInfo:

struct ExtendedOpenFileInfo {
	unordered_map<string, Value> options;
};

The Parquet reader is extended to support two keys in this struct:

  • encryption_key: used to pass a global encryption key for the Parquet file to the reader
  • footer_size: used to pass the footer size of the Parquet file to the reader. This can be used to skip the separate reading of the footer length from the back of the file - instead we can directly read the footer. Note that this must be exactly correct - an error is thrown if an incorrect footer size is provided.

@Mytherin Mytherin merged commit b195505 into duckdb:main Apr 14, 2025
49 of 50 checks passed
krlmlr added a commit to duckdb/duckdb-r that referenced this pull request May 18, 2025
Add extended file info to OpenFileInfo, and use this to pass encryption keys and footer size to Parquet reader (duckdb/duckdb#17085)
krlmlr added a commit to duckdb/duckdb-r that referenced this pull request May 18, 2025
Add extended file info to OpenFileInfo, and use this to pass encryption keys and footer size to Parquet reader (duckdb/duckdb#17085)
krlmlr added a commit to duckdb/duckdb-r that referenced this pull request May 18, 2025
Add extended file info to OpenFileInfo, and use this to pass encryption keys and footer size to Parquet reader (duckdb/duckdb#17085)
krlmlr added a commit to duckdb/duckdb-r that referenced this pull request May 19, 2025
Add extended file info to OpenFileInfo, and use this to pass encryption keys and footer size to Parquet reader (duckdb/duckdb#17085)
@Mytherin Mytherin deleted the extendedopenfileinfo branch June 12, 2025 15:28
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.

1 participant