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

Test transform function consistency for all transforms #1573

Merged
merged 2 commits into from
Jan 30, 2025

Conversation

kevinjqliu
Copy link
Contributor

I like this test from #1562, lets expand it to include all transforms

@kevinjqliu kevinjqliu requested a review from Fokko January 24, 2025 19:10
assert t.transform(source_type)(value) == t.pyarrow_transform(source_type)(pa.array([value])).to_pylist()[0]
except ValueError as e:
# Skipping unsupported feature
if "FeatureUnsupported => Unsupported data type for truncate transform" in str(e):
Copy link
Contributor

Choose a reason for hiding this comment

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

This feels contradictive, since it passes t.can_transform

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yea good point, let me dig into this a little more, i think the main error comes from rust

Copy link
Contributor

Choose a reason for hiding this comment

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

Looks like binary is not supported: apache/iceberg-rust#920

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.

Let's move this in first, and remove the try-catch later on 👍 Thanks @kevinjqliu

@Fokko Fokko merged commit 361a407 into apache:main Jan 30, 2025
7 checks passed
@kevinjqliu kevinjqliu deleted the kevinjqliu/expand-transform-test branch January 30, 2025 15:00
@kevinjqliu
Copy link
Contributor Author

Thanks! I opened #1591 to track this

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.

2 participants