Skip to content

Conversation

@pramodsatya
Copy link
Contributor

@pramodsatya pramodsatya commented Sep 18, 2024

Description

Adds support to run testcases from AbstractTestQueries with the C++ worker in presto-native-tests. These testcases are run with Presto's iterative optimizer disabled in TestNonIterativeDistributedQueries and with the default native hive query runner in TestTpchDistributedQueries.

Motivation and Context

Improves Presto C++ e2e test coverage with sidecar by extending production tests from presto-tests module to use the native worker.

Release Notes

== RELEASE NOTES ==

General Changes
* Add testcases from `AbstractTestQueries` to `presto-native-tests`.

steveburnett
steveburnett previously approved these changes Sep 18, 2024
Copy link
Contributor

@steveburnett steveburnett left a 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!

@pramodsatya pramodsatya force-pushed the presto-native-tests branch 2 times, most recently from acaa071 to 8ec8208 Compare September 19, 2024 04:56
@pramodsatya pramodsatya marked this pull request as ready for review September 19, 2024 04:57
mknegi
mknegi previously approved these changes Sep 19, 2024
@tdcmeehan
Copy link
Contributor

Are these tests being run as part of the CI?

@pramodsatya
Copy link
Contributor Author

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.

@pramodsatya pramodsatya force-pushed the presto-native-tests branch 2 times, most recently from 32b2ad6 to f614cb6 Compare October 7, 2024 21:16
@pramodsatya pramodsatya force-pushed the presto-native-tests branch 3 times, most recently from 11d653c to 47ecc65 Compare November 11, 2024 07:49
@tdcmeehan tdcmeehan self-assigned this Nov 11, 2024
@steveburnett
Copy link
Contributor

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.

== RELEASE NOTES ==
General Changes
* Add presto-native-tests module to run end-to-end tests with Presto native workers. :pr:`23671`

@pramodsatya
Copy link
Contributor Author

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.

== RELEASE NOTES ==
General Changes
* Add presto-native-tests module to run end-to-end tests with Presto native workers. :pr:`23671`

Thanks for the suggestion @steveburnett, updated accordingly.

@pramodsatya
Copy link
Contributor Author

@aditi-pandit, could you please help review this PR?

@pramodsatya pramodsatya requested a review from aditi-pandit July 17, 2025 16:03
Copy link
Contributor

@aditi-pandit aditi-pandit left a 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.

Copy link
Contributor

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.

Copy link
Contributor Author

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?

@steveburnett
Copy link
Contributor

Suggested changes for the release note.

== RELEASE NOTES ==

Prestissimo (Native Execution) Changes
* Add testcases from ``AbstractTestQueries`` to ``presto-native-tests``.

Copy link
Contributor Author

@pramodsatya pramodsatya left a 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() {}
Copy link
Contributor Author

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?

Copy link
Contributor Author

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?

pramodsatya added a commit that referenced this pull request Oct 31, 2025
## 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 ==
```
@pramodsatya pramodsatya changed the title [native] Add AbstractTestQueries to native tests test(native): Add AbstractTestQueries to native tests Oct 31, 2025
@github-actions
Copy link

github-actions bot commented Oct 31, 2025

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

pramodsatya added a commit that referenced this pull request Nov 4, 2025
## 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 ==
```
@pramodsatya
Copy link
Contributor Author

@aditi-pandit, could you please help review this PR? I addressed the previous review comments and opened issues for failures identified.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants