Skip to content

Conversation

emilk
Copy link
Contributor

@emilk emilk commented Sep 23, 2025

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 Changes to the arrow API label Sep 23, 2025
@alamb
Copy link
Contributor

alamb commented Sep 23, 2025

Looks like there are some tests to update on this one

@alamb
Copy link
Contributor

alamb commented Sep 24, 2025

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

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

alamb commented Oct 2, 2025

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 Changes to the arrow API 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