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

Improve HPL/SQL tests #5381

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

ppkarwasz
Copy link

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

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