Skip to content

Improve Display formatting of DataType::Timestamp - #8425

Merged
alamb merged 3 commits into
apache:mainfrom
rerun-io:emilk/improve-datatype-time-format
Sep 24, 2025
Merged

alamb merged 3 commits into
apache:mainfrom
rerun-io:emilk/improve-datatype-time-format

Conversation

@emilk

@emilk emilk commented Sep 23, 2025

Copy link
Copy Markdown
Contributor

Which issue does this PR close?

Rationale for this change

DataType:s end up in a lot of error messages, and we want them easy and readable, without and Rust-stuff in them like Some and None

What changes are included in this PR?

Before:

Timestamp(Millisecond, None)
Timestamp(Nanosecond, Some("UTC"))

After

Timestamp(ms)
Timestamp(ns, "UTC")

Are these changes tested?

Yes

Are there any user-facing changes?

Yes, this is a breaking change

@github-actions github-actions Bot added parquet Changes to the parquet crate arrow Changes to the arrow crate labels Sep 23, 2025
@alamb alamb added the api-change Breaking API change, needs to wait for a major version release label Sep 23, 2025
@alamb

alamb commented Sep 23, 2025

Copy link
Copy Markdown
Contributor

Looks like there are some tests to update on this one

@alamb

alamb commented Sep 24, 2025

Copy link
Copy Markdown
Contributor

Thank you @mbrobbel and @emilk -- this looks really great

@alamb
alamb merged commit e2f2749 into apache:main Sep 24, 2025
28 checks passed
@alamb

alamb commented Oct 2, 2025

Copy link
Copy Markdown
Contributor

I hit an issue related to this PR when testing DataFusion with the new release

alamb added a commit that referenced this pull request Oct 3, 2025
# Which issue does this PR close?

- Closes #8539

# Rationale for this change

Systems like DataFusion use the string representation of DataType in
their public APIs but the type names have changed after
- #8425


We should  retain backwards compatibility with the old type names too

# What changes are included in this PR?

1. Support old style `Timestamp(Nanosecond, None)` and
`Timestamp(Nanosecond, None)` style timestamp specifiers

# Are these changes tested?
Yes, with new tests


# Are there any user-facing changes?

See above
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api-change Breaking API change, needs to wait for a major version release arrow Changes to the arrow crate parquet Changes to the parquet crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants