Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Conversation

@lidavidm
Copy link
Member

@lidavidm lidavidm commented Mar 5, 2025

Fixes #1766.

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.

Nice one @lidavidm Thanks for fixing this 🙌

@lidavidm
Copy link
Member Author

lidavidm commented Mar 5, 2025

BTW one thing I noticed: the tests compare repr or str of PyArrow objects, however, we don't guarantee that is stable so the tests may break - it would be better to compare objects directly if possible

Copy link
Contributor

@kevinjqliu kevinjqliu left a comment

Choose a reason for hiding this comment

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

LGTM good catch!

@kevinjqliu
Copy link
Contributor

BTW one thing I noticed: the tests compare repr or str of PyArrow objects, however, we don't guarantee that is stable so the tests may break - it would be better to compare objects directly if possible

I see we fixed it for test_identity_transform_column_projection. There are a couple more tests with that issue in the same file. Its a good idea to compare the table value and not the repr

@kevinjqliu kevinjqliu merged commit ace87ed into apache:main Mar 5, 2025
7 checks passed
@lidavidm lidavidm deleted the gh-1766 branch March 5, 2025 23:55
@Fokko Fokko added this to the PyIceberg 0.9.1 milestone Apr 20, 2025
Fokko pushed a commit that referenced this pull request Apr 25, 2025
gabeiglio pushed a commit to Netflix/iceberg-python that referenced this pull request Aug 13, 2025
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.

Column projection: filling in default values is broken for tables that don't have exactly 1 row

3 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.