-
Notifications
You must be signed in to change notification settings - Fork 5.5k
test(native): Add AbstractTestQueries to native tests
#23671
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
base: master
Are you sure you want to change the base?
Conversation
steveburnett
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! (docs)
Reviewed README.md, no concerns. Thanks for the doc!
acaa071 to
8ec8208
Compare
|
Are these tests being run as part of the CI? |
|
They are not being run as part of CI currently, but we plan to setup a pipeline to run these tests on a regular cadence subsequently. Will also add a CI job to run these tests in a follow-up PR. |
presto-native-tests/src/test/java/com.facebook.presto.nativetests/TestAggregations.java
Outdated
Show resolved
Hide resolved
32b2ad6 to
f614cb6
Compare
11d653c to
47ecc65
Compare
|
Just a suggestions for the release note: Consider using the description of the PR in the release note entry to help a release note reader understand what this module does. |
Thanks for the suggestion @steveburnett, updated accordingly. |
b86a828 to
ad26257
Compare
ad26257 to
1e5f3cd
Compare
02c08ea to
ad69521
Compare
|
@aditi-pandit, could you please help review this PR? |
aditi-pandit
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@pramodsatya : Thanks for the iterations of this PR. Have the next round of comments.
...to-native-tests/src/test/java/com/facebook/presto/nativetests/AbstractTestQueriesNative.java
Outdated
Show resolved
Hide resolved
...to-native-tests/src/test/java/com/facebook/presto/nativetests/AbstractTestQueriesNative.java
Outdated
Show resolved
Hide resolved
...to-native-tests/src/test/java/com/facebook/presto/nativetests/AbstractTestQueriesNative.java
Outdated
Show resolved
Hide resolved
...to-native-tests/src/test/java/com/facebook/presto/nativetests/AbstractTestQueriesNative.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You could move the changes in limitations.rst and TestNonIterativeDistributedQueries and TestTpchDistributedQueries into a separate PR as that will be much easier to review and submit than this PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes in TestNonIterativeDistributedQueries and TestTpchDistributedQueries depend on AbstractTestQueriesNative, and the comment in limitations.rst explains the difference in approx_set results for which the test is added here. Is it fine to retain these changes here?
...-native-execution/src/test/java/com/facebook/presto/nativeworker/NativeQueryRunnerUtils.java
Outdated
Show resolved
Hide resolved
presto-native-tests/src/test/java/com/facebook/presto/nativetests/NativeTestsUtils.java
Outdated
Show resolved
Hide resolved
presto-main-base/src/main/java/com/facebook/presto/sql/planner/PlannerUtils.java
Outdated
Show resolved
Hide resolved
presto-main-base/src/main/java/com/facebook/presto/metadata/FunctionSignatureMatcher.java
Show resolved
Hide resolved
...to-native-tests/src/test/java/com/facebook/presto/nativetests/AbstractTestQueriesNative.java
Outdated
Show resolved
Hide resolved
...to-native-tests/src/test/java/com/facebook/presto/nativetests/AbstractTestQueriesNative.java
Outdated
Show resolved
Hide resolved
...to-native-tests/src/test/java/com/facebook/presto/nativetests/AbstractTestQueriesNative.java
Outdated
Show resolved
Hide resolved
|
Suggested changes for the release note. |
ad69521 to
eeda180
Compare
pramodsatya
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the feedback @aditi.pandit, addressed the comments. Could you PTAL?
| /// not needed and this test is disabled in Presto C++. | ||
| @Override | ||
| @Test(enabled = false) | ||
| public void testShowFunctions() {} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This test checks metadata for certain functions and would need to be modified for native functions, I figured since validation with Presto java is not necessary for output of SHOW FUNCTIONS this test could be disabled. I have now modified the test to validate native function signatures instead of disabling the test, would this be fine?
...to-native-tests/src/test/java/com/facebook/presto/nativetests/AbstractTestQueriesNative.java
Outdated
Show resolved
Hide resolved
...to-native-tests/src/test/java/com/facebook/presto/nativetests/AbstractTestQueriesNative.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes in TestNonIterativeDistributedQueries and TestTpchDistributedQueries depend on AbstractTestQueriesNative, and the comment in limitations.rst explains the difference in approx_set results for which the test is added here. Is it fine to retain these changes here?
presto-main-base/src/main/java/com/facebook/presto/sql/planner/PlannerUtils.java
Outdated
Show resolved
Hide resolved
...-native-execution/src/test/java/com/facebook/presto/nativeworker/NativeQueryRunnerUtils.java
Outdated
Show resolved
Hide resolved
...to-native-tests/src/test/java/com/facebook/presto/nativetests/AbstractTestQueriesNative.java
Outdated
Show resolved
Hide resolved
...to-native-tests/src/test/java/com/facebook/presto/nativetests/AbstractTestQueriesNative.java
Outdated
Show resolved
Hide resolved
presto-native-tests/src/test/java/com/facebook/presto/nativetests/NativeTestsUtils.java
Outdated
Show resolved
Hide resolved
## Description P4HyperLogLog type was added to Velox recently in facebookincubator/velox@75ec5ba, and this type should be supported by `NativeTypeManager`. ## Motivation and Context Support P4HLL type in `NativeTypeManager`, uncovered by `native-tests` in #23671. ## Impact Support P4HLL in Presto C++ clusters with sidecar. ## Test Plan Added tests. ``` == NO RELEASE NOTE == ```
eeda180 to
94746ea
Compare
AbstractTestQueries to native testsAbstractTestQueries to native tests
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.Scanned FilesNone |
## Description Fixes expected `orderdate` length in `testShowColumns` for `DWRF` file format. ## Motivation and Context Required by tests to be added in #23671 . ``` == NO RELEASE NOTE == ```
94746ea to
e8b547d
Compare
|
@aditi-pandit, could you please help review this PR? I addressed the previous review comments and opened issues for failures identified. |
Description
Adds support to run testcases from
AbstractTestQuerieswith the C++ worker inpresto-native-tests. These testcases are run with Presto's iterative optimizer disabled inTestNonIterativeDistributedQueriesand with the default native hive query runner inTestTpchDistributedQueries.Motivation and Context
Improves Presto C++ e2e test coverage with sidecar by extending production tests from
presto-testsmodule to use the native worker.Release Notes