Support user-provided schema for Parquet reads#4134
Merged
sfc-gh-mayliu merged 1 commit intomainfrom Mar 25, 2026
Merged
Conversation
sfc-gh-fhe
reviewed
Mar 24, 2026
sfc-gh-fhe
reviewed
Mar 24, 2026
sfc-gh-yuwang
approved these changes
Mar 24, 2026
650b56e to
bb994d5
Compare
sfc-gh-mayliu
approved these changes
Mar 25, 2026
Allow users to specify a custom schema when reading Parquet files via `session.read.schema(schema).parquet(path)`. Previously only JSON and XML supported user-provided schemas; Parquet was blocked by a ValueError gate. - Add "parquet" to the user-schema format allowlist in _read_semi_structured_file - Update schema() docstring to reflect all supported formats - Remove stale ValueError assertion in test_read_parquet_with_no_schema - Add test_read_parquet_user_input_schema covering matching schema, missing columns, extra columns, and wrong-type error cases (parametrized for both select and copy paths) - Update CHANGELOG.md Made-with: Cursor
bb994d5 to
66a034b
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Allow users to specify a custom schema when reading Parquet files via
session.read.schema(schema).parquet(path). Previously only JSON and XML supported user-provided schemas; Parquet was blocked by a ValueError gate.Made-with: Cursor
Which Jira issue is this PR addressing? Make sure that there is an accompanying issue to your PR.
Fixes SNOW-3242298
Fill out the following pre-review checklist:
Please describe how your code solves the related issue.
Please write a short description of how your code change solves the related issue.