Skip to content

Fix record API support for reading INT32 encoded TIME_MILLIS #7511

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

Merged

Conversation

njaremko
Copy link
Contributor

@njaremko njaremko commented May 15, 2025

Which issue does this PR close?

Rationale for this change

Snowflake exports with this encoding, so (I'm assuming) it's a valid representation, and we should support parsing it.

What changes are included in this PR?

The ability to parse INT32 encoded TIME_MILLIS in the record API, and a test.

Are there any user-facing changes?

No

@github-actions github-actions bot added the parquet Changes to the parquet crate label May 15, 2025
@alamb
Copy link
Contributor

alamb commented May 15, 2025

Thank you @njaremko -- this looks good to me . I have started the CI

I also want to double check the arrow reader supports this conversion too.

@alamb
Copy link
Contributor

alamb commented May 16, 2025

I believe the CI failures are due to the new release of Rust. Once we merge #7514 they should pass on this PR

Copy link
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @njaremko -- this looks good to me

@@ -671,6 +671,7 @@ impl Field {
ConvertedType::UINT_16 => Field::UShort(value as u16),
ConvertedType::UINT_32 => Field::UInt(value as u32),
ConvertedType::DATE => Field::Date(value),
ConvertedType::TIME_MILLIS => Field::TimestampMillis(value as i64),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@alamb alamb merged commit d6a2351 into apache:main May 20, 2025
16 checks passed
@alamb
Copy link
Contributor

alamb commented May 20, 2025

Thanks again @njaremko

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
parquet Changes to the parquet crate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Record API unable to parse TIME_MILLIS when encoded as INT32
2 participants