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

API, Core: Remove unnecessary casts to Iterable<T> #11601

Merged
merged 1 commit into from
Nov 20, 2024

Conversation

nastra
Copy link
Contributor

@nastra nastra commented Nov 20, 2024

No description provided.

() -> pred.literals().stream().map(lit -> sanitize(lit, now, today)).iterator();
return new UnboundPredicate<>(pred.op(), pred.term(), (Iterable<T>) iter);
Iterable<T> iter =
() -> pred.literals().stream().map(lit -> (T) sanitize(lit, now, today)).iterator();
Copy link
Contributor Author

Choose a reason for hiding this comment

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

L337 also casts the result of sanitize() to T

@nastra
Copy link
Contributor Author

nastra commented Nov 20, 2024

thanks for the quick review @danielcweeks

@nastra nastra merged commit d19e3ff into apache:main Nov 20, 2024
50 checks passed
@nastra nastra deleted the iterable-casts branch November 20, 2024 16:32
nastra added a commit to nastra/iceberg that referenced this pull request Nov 21, 2024
zachdisc pushed a commit to zachdisc/iceberg that referenced this pull request Dec 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants