This repository has been archived by the owner on Feb 18, 2024. It is now read-only.
Add SchemaInferenceOptions options to infer_schema and option to configure int96 inference #1533
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR addresses part 2 of #1527
It solves the problem of configuring arrow2's Parquet schema inference to infer Timestamp fields from Parquet Int96 fields differently based on user input.
SchemaInferenceOptions
struct which allows for configurability of how schema inference on Parquet filesint96_coerce_to_timeunit
flag to configure how Parquet int96 fields are inferred as arrow Timestamps*_with_options
variants of theinfer_schema
andparquet_to_arrow_schema
APIs to take in the options