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

[#5071] Improvement (test): Add integration tests for Trino cascading queries #5073

Open
wants to merge 18 commits into
base: main
Choose a base branch
from

Conversation

diqiu50
Copy link
Contributor

@diqiu50 diqiu50 commented Oct 9, 2024

What changes were proposed in this pull request?

Add integration tests for Trino cascading queries

Why are the changes needed?

Fix: #5071

Does this PR introduce any user-facing change?

NO

How was this patch tested?

New integration testers

@diqiu50 diqiu50 self-assigned this Oct 9, 2024
@diqiu50 diqiu50 changed the title [TEST] Add integration tests for Trino cascading queries [#5071] Improvement (test): Add integration tests for Trino cascading queries Oct 9, 2024
@@ -76,7 +76,7 @@ jobs:

- name: Package Gravitino
run: |
./gradlew compileDistribution -x test -PjdkVersion=${{ matrix.java-version }}
./gradlew build compileDistribution -x test -PjdkVersion=${{ matrix.java-version }}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need to add the build task? I believe the build task is included in compileDistribution

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 compileDistribution task does not build the Trino connector

#create test metalake
counter=0
while [ $counter -le 30 ]; do
sleep 1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Better move this line to L53.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to pause for a moment because the Gravitino server has not completed startup.

cp -r /opt/gravitino-server /tmp/gravitino-server
rm -fr /tmp/gravitino-server/logs
rm -fr /tmp/gravitino-server/data
/tmp/gravitino-server/bin/gravitino.sh start
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When will you stop the Gravitino server? I haven't noticed such logic in the 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 Gravitino server was stopped by the container shutdown.

# under the License.

connector.name=trino
connection-url=jdbc:trino://trino-remote:8080/tpcds
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

${trino-remote-address}:${trino-remote-port}

Copy link
Contributor Author

@diqiu50 diqiu50 Oct 12, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That URL is a valid connection-url used by the Docker Compose environment.

@diqiu50 diqiu50 requested a review from yuqi1129 October 12, 2024 07:43
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.

[Improvement] Add integration tests for Trino cascading queries
2 participants