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

HIVE-28656: Improve HPL/SQL tests #5381

Merged
merged 3 commits into from
Dec 5, 2024

Conversation

ppkarwasz
Copy link
Contributor

What changes were proposed in this pull request?

This PR introduces a custom Console implementation to capture the output of two hplsql tests and make them independent from whatever is printed to System.out and System.err.

Why are the changes needed?

Two tests in hplsql module (TestHplsqlLocal and TestHplsqlOffline) make assertions on the output to System.out and System.err. This makes the tests fragile to any other output that might appear there (see apache/logging-log4j2#2791 for example) and prevents them from running in parallel.

Does this PR introduce any user-facing change?

No, no changes to the main code are introduced.

Is the change a dependency upgrade?

No.

Two tests in `hplsql` module make assertions on the output to
`System.out` and `System.err`. This makes the tests fragile to any other
output that might appear there (see apache/logging-log4j2#2791 for
example).

This PR introduces a custom `Console` implementation to capture the
output of these tests and make them independent from whatever is printed
to the standard output and error descriptors.
Copy link

sonarcloud bot commented Aug 4, 2024

Copy link

sonarcloud bot commented Sep 16, 2024

Copy link
Contributor

@zhangbutao zhangbutao 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

@zhangbutao
Copy link
Contributor

@ppkarwasz Thanks for your fix.
Could you please create a tikcet for the fix? https://issues.apache.org/jira/projects/HIVE/issues

@ppkarwasz ppkarwasz changed the title Improve HPL/SQL tests HIVE-28656: Improve HPL/SQL tests Dec 5, 2024
@ppkarwasz
Copy link
Contributor Author

@zhangbutao: I created HIVE-28656.

@zhangbutao zhangbutao merged commit c82e1ef into apache:master Dec 5, 2024
5 checks passed
@ppkarwasz ppkarwasz deleted the fix/hpl-sql-tests branch December 5, 2024 10:23
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