Allow importing parquet files with arbitrary root column names. #8646
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.
Parquet represents schemas as trees with a root node, and columns as paths from the root to a leaf.
parquet-go
, the library Dolt uses to export tables as parquet files, usesparquet_go_root
as the default name of the root node, but other names are allowed.Prior to this PR, Dolt was assuming that the parquet file always had a root node named
parquet_go_root
, and would fail if any other name was used. This PR changes the behavior to have Dolt read the name from the file instead.I also added a test that imports a simple parquet file that was not created with
parquet-go
.