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

[SPARK-47368][SQL] Remove inferTimestampNTZ config check in ParquetRowConverter #45480

Closed
wants to merge 2 commits into from

Conversation

gengliangwang
Copy link
Member

What changes were proposed in this pull request?

The configuration spark.sql.parquet.inferTimestampNTZ.enabled is not related the parquet row converter. This PR is the remove the config check spark.sql.parquet.inferTimestampNTZ.enabled in the ParquetRowConverter

Why are the changes needed?

Bug fix. Otherwise reading TimestampNTZ columns may fail when spark.sql.parquet.inferTimestampNTZ.enabled is disabled.

Does this PR introduce any user-facing change?

No

How was this patch tested?

New UT

Was this patch authored or co-authored using generative AI tooling?

No

@gengliangwang
Copy link
Member Author

cc @sadikovi

@github-actions github-actions bot added the SQL label Mar 12, 2024
@gengliangwang
Copy link
Member Author

gengliangwang commented Mar 13, 2024

@cloud-fan @sadikovi @yaooqinn Thanks for the review. Merging this one to master.
created backport in: #45492

gengliangwang added a commit to gengliangwang/spark that referenced this pull request Mar 13, 2024
…wConverter

The configuration `spark.sql.parquet.inferTimestampNTZ.enabled` is not related the parquet row converter.  This PR is the remove the config check `spark.sql.parquet.inferTimestampNTZ.enabled` in the ParquetRowConverter

Bug fix.  Otherwise reading TimestampNTZ columns may fail when `spark.sql.parquet.inferTimestampNTZ.enabled` is disabled.

No

New UT

No

Closes apache#45480 from gengliangwang/ntzRowConverter.

Authored-by: Gengliang Wang <gengliang@apache.org>
Signed-off-by: Gengliang Wang <gengliang@apache.org>
(cherry picked from commit 625589f)
Signed-off-by: Gengliang Wang <gengliang@apache.org>
sweisdb pushed a commit to sweisdb/spark that referenced this pull request Apr 1, 2024
…wConverter

### What changes were proposed in this pull request?

The configuration `spark.sql.parquet.inferTimestampNTZ.enabled` is not related the parquet row converter.  This PR is the remove the config check `spark.sql.parquet.inferTimestampNTZ.enabled` in the ParquetRowConverter

### Why are the changes needed?

Bug fix.  Otherwise reading TimestampNTZ columns may fail when `spark.sql.parquet.inferTimestampNTZ.enabled` is disabled.
### Does this PR introduce _any_ user-facing change?

No

### How was this patch tested?

New UT

### Was this patch authored or co-authored using generative AI tooling?

No

Closes apache#45480 from gengliangwang/ntzRowConverter.

Authored-by: Gengliang Wang <gengliang@apache.org>
Signed-off-by: Gengliang Wang <gengliang@apache.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
4 participants