[Variant] Add Variant::Time primitive and cast logic#8114
Conversation
46a82fb to
f086463
Compare
|
Thanks @klion26 !
Can you please make a PR to parquet-testing repo directly? We'll need to get that repo updated prior to merging this PR |
There was a problem hiding this comment.
this logic looks good to me -- thank you
There was a problem hiding this comment.
perhaps the println is left over
There was a problem hiding this comment.
fixed in the followup pr(will push remote after parquet-testing pr has been merged)
There was a problem hiding this comment.
I wonder if there is a reason not to compare the output json string directly (why look for contains and starts/ends)? One thing a full compare would do is output the actual value in any failure message
There was a problem hiding this comment.
Fixed it(in the follow-up pr, will push remote after parquet-testing pr has been merged).
klion26
left a comment
There was a problem hiding this comment.
@alamb thanks for the review. I've filed pr for parquet-testing(apache/parquet-testing#92), and will update the current pr after the parquet-testing pr has been merged.
There was a problem hiding this comment.
Fixed it(in the follow-up pr, will push remote after parquet-testing pr has been merged).
There was a problem hiding this comment.
fixed in the followup pr(will push remote after parquet-testing pr has been merged)
|
Close and reopen to trigger ci |
|
@alamb I've updated the pr, and the pr in The parquet-testing pr has been added in the current pr(the latest commit id in The CI tests |
| Ok(()) | ||
| } | ||
|
|
||
| #[test] |
Yes, I agree this does not seem relate. I did some digging and I think it is related to the binary being cached already. I pushed a commit to fix this (hopefully): afbcb4b |
|
Thank you @klion26 for your patience |
|
@alamb thank you for your review and merging! |
Which issue does this PR close?
We generally require a GitHub issue to be filed for all bug fixes and enhancements and this helps us generate change logs for our releases. You can link an issue to this PR using the GitHub syntax.
DataType::Time32/Time64support forcast_to_variantkernel #8055.Rationale for this change
Add
Variant::Timesupport and cast_to_variant forVariant::TimeWhat changes are included in this PR?
Variant::Timeprimitive supportprimitive_time.metadataandprimitive_time.valuegenerated from Iceberg Code intoparquet-testingcast_to_variantsupport forVariant::TimeAre these changes tested?
Added tests for the added feature.
Are there any user-facing changes?
No