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

fix: add conversion for string for Field::TimestampMicros (#1372) #1373

Merged
merged 1 commit into from
May 17, 2023

Conversation

cmackenzie1
Copy link
Contributor

Description

Add a match statement to handle the case when timestamp is encoded as TimestampMicros in the parquet file.

Related Issue(s)

Documentation

N/A

…cros`

Add a match statement to handle the case when timestamp is encoded
as `TimestampMicros` in the parquet file.

Resolves delta-io#1372.
@github-actions
Copy link

ACTION NEEDED

delta-rs follows the Conventional Commits specification for release automation.

The PR title and description are used as the merge commit message. Please update your PR title and description to match the specification.

.timestamp_opt(seconds, microseconds * 1_000)
.single()
.ok_or("Value out of bounds")?;
Ok(dt.to_rfc3339_opts(SecondsFormat::Micros, true))
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Do we want SecondsFormat::Micros here or match with Millisecond format as above?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Seems like micros is fine. Spec specifically allows that one. https://github.com/delta-io/delta/blob/master/PROTOCOL.md#partition-value-serialization

@roeap roeap changed the title fix(#1372): Add conversion for string for Field::TimestampMicros fix: Add conversion for string for Field::TimestampMicros (#1372) May 17, 2023
@roeap roeap changed the title fix: Add conversion for string for Field::TimestampMicros (#1372) fix: add conversion for string for Field::TimestampMicros (#1372) May 17, 2023
@roeap roeap merged commit 1b01f9f into delta-io:main May 17, 2023
@cmackenzie1 cmackenzie1 deleted the cole/issue-1372 branch May 17, 2023 21:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
binding/rust Issues for the Rust crate rust
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unable to read timestamp fields from column statistics
3 participants