Skip to content

HIVE-28920: Unstable tests due to unixtimestamp() and constant folding #5799

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 1 commit into from
May 3, 2025

Conversation

zabetak
Copy link
Member

@zabetak zabetak commented May 2, 2025

What changes were proposed in this pull request and why?

Use hive.test.currenttimestamp instead of regex masking to stabilize tests and avoid test failures and flakiness. Plans are subject to change anytime so instead of adapting the masking expression every-time it is preferred to use a fixed value for unixtimestamp() specific tests.

Does this PR introduce any user-facing change?

No

How was this patch tested?

 mvn test -Dtest=TestMiniLlapLocalCliDriver -Dqfile="cbo_join_transitive_pred_loop_1.q,materialized_view_rewrite_by_text_10.q,partition_unix_timestamp.q"

cbo_join_transitive_pred_loop_1.q currently (2025-05-02) fails and the rest may fail if plan changes slighlty.
Copy link

sonarqubecloud bot commented May 2, 2025

Copy link
Contributor

@soumyakanti3578 soumyakanti3578 left a comment

Choose a reason for hiding this comment

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

LGTM. +1 pending tests.

Copy link
Contributor

@SourabhBadhya SourabhBadhya left a comment

Choose a reason for hiding this comment

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

LGTM +1

@zabetak zabetak merged commit 660d72e into apache:master May 3, 2025
6 checks passed
@zabetak zabetak deleted the HIVE-28920 branch May 3, 2025 13:33
@zabetak
Copy link
Member Author

zabetak commented May 3, 2025

Thanks for the reviews @soumyakanti3578 and @SourabhBadhya !

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.

4 participants