You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by "harshmotw-db (via GitHub)" <gi...@apache.org> on 2025/07/31 01:24:52 UTC
[PR] [SPARK-53032] Fix parquet format of shredded timestamp values within arrays [spark]
harshmotw-db opened a new pull request, #51734:
URL: https://github.com/apache/spark/pull/51734
<!--
Thanks for sending a pull request! Here are some tips for you:
1. If this is your first time, please read our contributor guidelines: https://spark.apache.org/contributing.html
2. Ensure you have added or run the appropriate tests for your PR: https://spark.apache.org/developer-tools.html
3. If the PR is unfinished, add '[WIP]' in your PR title, e.g., '[WIP][SPARK-XXXX] Your PR title ...'.
4. Be sure to keep the PR description updated to reflect all changes.
5. Please write your PR title to summarize what this PR proposes.
6. If possible, provide a concise example to reproduce the issue for a faster review.
7. If you want to add a new configuration, please read the guideline first for naming configurations in
'core/src/main/scala/org/apache/spark/internal/config/ConfigEntry.scala'.
8. If you want to add or modify an error type or message, please read the guideline first in
'common/utils/src/main/resources/error/README.md'.
-->
### What changes were proposed in this pull request?
This PR is an extension of the [previous PR](https://github.com/apache/spark/pull/51609) which did not account for the fact that timestamps within Variant arrays could be shredded as well. This PR makes sure that these timestamps are stored in compliance to the shredding spec.
### Why are the changes needed?
Variants representing arrays of timestamps could be shredded and the written format must reflect the parquet spec.
### Does this PR introduce _any_ user-facing change?
This PR must go in the same version as the [previous PR](https://github.com/apache/spark/pull/51609). The physical format of shredded timestamps within parquet files will be different.
### How was this patch tested?
Incorporated `array<timestamp>` within previous unit test.
### Was this patch authored or co-authored using generative AI tooling?
no
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
Re: [PR] [SPARK-53032] Fix parquet format of shredded timestamp values within arrays [spark]
Posted by "cloud-fan (via GitHub)" <gi...@apache.org>.
cloud-fan commented on PR #51734:
URL: https://github.com/apache/spark/pull/51734#issuecomment-3149001777
the spark connect test failure is unrelated, thanks, merging to master/4.0!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
Re: [PR] [SPARK-53032] Fix parquet format of shredded timestamp values within arrays [spark]
Posted by "harshmotw-db (via GitHub)" <gi...@apache.org>.
harshmotw-db commented on PR #51734:
URL: https://github.com/apache/spark/pull/51734#issuecomment-3140811496
@violetnspct Variant does not have an internal map type so as far as I can tell, shredded Variants cannot produce maps. I have still passed the `inShredded` argument into Map code-paths just for simplicity (and future-proofint), and I don't believe it comes into effect right now.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
Re: [PR] [SPARK-53032] Fix parquet format of shredded timestamp values within arrays [spark]
Posted by "violetnspct (via GitHub)" <gi...@apache.org>.
violetnspct commented on PR #51734:
URL: https://github.com/apache/spark/pull/51734#issuecomment-3138369289
@harshmotw-db Should you add test for for map<key, timestamp> scenarios? Test cases similar to array tests but using map structures.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
Re: [PR] [SPARK-53032] Fix parquet format of shredded timestamp values within arrays [spark]
Posted by "violetnspct (via GitHub)" <gi...@apache.org>.
violetnspct commented on PR #51734:
URL: https://github.com/apache/spark/pull/51734#issuecomment-3140976743
@harshmotw-db As a best practice, would it make sense to add a small TODO or comment in the code (or even a placeholder test) indicating that map-related tests should be added once map support is implemented?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
Re: [PR] [SPARK-53032] Fix parquet format of shredded timestamp values within arrays [spark]
Posted by "cloud-fan (via GitHub)" <gi...@apache.org>.
cloud-fan commented on PR #51734:
URL: https://github.com/apache/spark/pull/51734#issuecomment-3149003297
@harshmotw-db can you open a backport PR for branch-4.0?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
Re: [PR] [SPARK-53032] Fix parquet format of shredded timestamp values within arrays [spark]
Posted by "violetnspct (via GitHub)" <gi...@apache.org>.
violetnspct commented on PR #51734:
URL: https://github.com/apache/spark/pull/51734#issuecomment-3140948835
Thank you for confirming this, @harshmotw-db.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
Re: [PR] [SPARK-53032] Fix parquet format of shredded timestamp values within arrays [spark]
Posted by "cloud-fan (via GitHub)" <gi...@apache.org>.
cloud-fan closed pull request #51734: [SPARK-53032] Fix parquet format of shredded timestamp values within arrays
URL: https://github.com/apache/spark/pull/51734
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
Re: [PR] [SPARK-53032] Fix parquet format of shredded timestamp values within arrays [spark]
Posted by "harshmotw-db (via GitHub)" <gi...@apache.org>.
harshmotw-db commented on PR #51734:
URL: https://github.com/apache/spark/pull/51734#issuecomment-3145832837
@violetnspct Added a comment here: https://github.com/apache/spark/pull/51734/commits/09718d91ba0bb633dec43bd57d476122f8eb8dff
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org