Add Presto platform with engine-only integration tests#773
Open
JunWang222 wants to merge 4 commits into
Open
Conversation
Implement Presto (PrestoDB) as a Wayang platform module extending JdbcPlatformTemplate, same pattern as wayang-trino.
Run the whole Wayang plan, including the terminal sink, inside Presto: register only Presto.plugin(), end every PrestoOperatorsIT test in a TableSink that compiles to CREATE TABLE ... AS SELECT, and assert results via plain JDBC after execute() returns. - jdbc-template JdbcExecutor.executeSinkStage: use selectStartTask for multi-source joins and collect global-reduce/reduce-by/sort into the composed CREATE TABLE AS SELECT (ported from wayang-trino-only-test). - api-scala-java DataQuantaBuilder: add withSqlUdf/withSqlUdfs on the reduce/join/sort builders so JavaPlanBuilder tests can push SQL down. - PrestoOperatorsIT: 13 engine-only tests (8 operator-level + 5 JavaPlanBuilder); join Tuple2->Record handled by a test-only flatten mapping to PrestoProjectionOperator. - improvement.md: document the engine-only shape. Verified against live PrestoDB (memory connector): Tests run: 13, Failures: 0, Errors: 0, Skipped: 0; 13 CREATE TABLE AS SELECT executed in Presto. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Contributor
|
Thank you for your contribution, looks good! left some comments. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds the Wayang Presto platform implementation and engine-only integration tests.
What is included
wayang-prestoplatform module.PrestoOperatorsITcoverage for each operator.Presto.plugin().Validation
apache/wayang:main.