Skip to content

Conversation

@rambleraptor
Copy link
Contributor

Closes #2270
Related to #1045

Rationale for this change

This allows us to read nanosecond information from pyarrow. Right now, we always downcast to microseconds or throw an error. By passing through the format-version, we can grab nanosecond precision just for v3 tables

Are these changes tested?

Included a test. I can't do a test involving writing since we don't support v3 writing yet (there's a PR out for that)

Are there any user-facing changes?

rambleraptor and others added 2 commits August 7, 2025 09:53
Co-authored-by: Fokko Driesprong <fokko@apache.org>
Co-authored-by: Fokko Driesprong <fokko@apache.org>
@rambleraptor rambleraptor requested a review from Fokko August 7, 2025 16:53
Copy link
Contributor

@Fokko Fokko left a comment

Choose a reason for hiding this comment

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

One nit, apart from that, this looks great! Thanks @rambleraptor for working on this 👍

@rambleraptor
Copy link
Contributor Author

@Fokko responded. thanks a lot!

@Fokko Fokko merged commit 24b12dd into apache:main Aug 7, 2025
10 checks passed


@pytest.fixture(scope="session")
def arrow_table_schema_with_nanoseconds_timestamp_precisions() -> "pa.Schema":
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: this isnt used

Copy link
Contributor Author

Choose a reason for hiding this comment

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

removed this in the follow-up PR.

gabeiglio pushed a commit to Netflix/iceberg-python that referenced this pull request Aug 13, 2025
<!--
Thanks for opening a pull request!
-->

<!-- In the case this PR will resolve an issue, please replace
${GITHUB_ISSUE_ID} below with the actual Github issue id. -->
Closes apache#2270 
Related to apache#1045 

# Rationale for this change
This allows us to read nanosecond information from pyarrow. Right now,
we always downcast to microseconds or throw an error. By passing through
the format-version, we can grab nanosecond precision *just for v3
tables*

# Are these changes tested?
Included a test. I can't do a test involving writing since we don't
support v3 writing yet (there's a PR out for that)

# Are there any user-facing changes?

<!-- In the case of user-facing changes, please add the changelog label.
-->

---------

Co-authored-by: Fokko Driesprong <fokko@apache.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve timestamp support

3 participants