Skip to content

HIVE-29029: When stack UDTF is used with UNION ALL throwing ClassCastException in CBO mode. #5978

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

Merged
merged 2 commits into from
Jul 21, 2025

Conversation

mdayakar
Copy link
Contributor

HIVE-29029: When stack UDTF is used with UNION ALL throwing ClassCastException in CBO mode.

What changes were proposed in this pull request?

Ignore HiveUnionSimpleSelectsToInlineTableRule when stack UDTF is used with UNION ALL.

Why are the changes needed?

To fix the ClassCastException when stack UDTF is used with UNION ALL.

Does this PR introduce any user-facing change?

No

How was this patch tested?

mvn -Dtest=TestMiniLlapLocalCliDriver -Dqfile=udtf_with_unionall.q -pl itests/qtest -Pitests

Copy link

Copy link
Member

@zabetak zabetak left a comment

Choose a reason for hiding this comment

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

LGTM. Spotted some small stuff but we can leave with those.

@zabetak zabetak merged commit ad8701e into apache:master Jul 21, 2025
4 checks passed
@zabetak
Copy link
Member

zabetak commented Jul 21, 2025

Thanks for the PR @mdayakar !

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.

3 participants