-
Notifications
You must be signed in to change notification settings - Fork 395
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
[#1247] Improvement (trino-connector) Make Trino QueryIT test cases running in ci. #1262
Conversation
42fcc4c
to
c812d4b
Compare
c812d4b
to
2bb4c03
Compare
16254db
to
2f2cc50
Compare
79ac1e4
to
6e1b195
Compare
6e1b195
to
4ad5638
Compare
...est/src/test/java/com/datastrato/gravitino/integration/test/container/TrinoITContainers.java
Outdated
Show resolved
Hide resolved
...gration-test/src/test/java/com/datastrato/gravitino/integration/test/trino/TrinoQueryIT.java
Outdated
Show resolved
Hide resolved
...gration-test/src/test/java/com/datastrato/gravitino/integration/test/trino/TrinoQueryIT.java
Outdated
Show resolved
Hide resolved
@@ -6,3 +6,4 @@ | |||
# Fixed docker container network subnet in Gravitino integration testing module | |||
# Generate command: `docker network ls --filter driver=bridge --format "{{.ID}}" | xargs docker network inspect --format "route {{range .IPAM.Config}}{{.Subnet}}{{end}}" > ${bin}/docker-connector.conf` | |||
route 10.20.30.0/28 | |||
route 10.20.30.16/28 |
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.
Why do we need to change this route configuration?
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.
Docker Compose uses the 10.20.30.16/28 network. Because if you use the integrated testing network, manually starting Docker Compose will result in errors due to the lack of network.
Using ITUtils.joinPath to concat file name.
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.
I manually test passed.
LGTM
@jerryshao Please take a review. |
…t on Trino image gravitino-ci-trino:0.1.3. (apache#1329) ### What changes were proposed in this pull request? Fix the failed 'drop catalog' test on Trino image gravitino-ci-trino:0.1.3. Trino image gravitino-ci-trino:0.1.2 use the gravitino-trino-connector-0.3.0-SNAPSHOT.jar, it does not support drop catalog, so the tester has made it compatible with this. Trino image gravitino-ci-trino:0.1.3 use the gravitino-trino-connector-0.4.0-SNAPSHOT.jar, it support drop catalog. the test did not pass. ### Why are the changes needed? Fix: apache#1328 ### Does this PR introduce _any_ user-facing change? NO ### How was this patch tested? NO
…crement interface. (apache#1278) ### What changes were proposed in this pull request? Add column attribute autoIncrement of the increment interface. ### Why are the changes needed? Fix: apache#1277 ### Does this PR introduce _any_ user-facing change? 1. Change in user-facing APIs. ### How was this patch tested? UT Co-authored-by: Clearvive <[email protected]>
… allowMethods for CorsFilter (apache#1348) ### What changes were proposed in this pull request? Modify the default value of allowMethods for CorsFilter ### Why are the changes needed? Our alter api uses the method `PUT`. It will be more convenient for users. ### Does this PR introduce _any_ user-facing change? Modify the document. ### How was this patch tested? By hand. Co-authored-by: Heng Qin <[email protected]> Co-authored-by: Jerry Shao <[email protected]>
### What changes were proposed in this pull request? add missing headers and license ### Why are the changes needed? Fix: apache#1267 ### Does this PR introduce _any_ user-facing change? N/A ### How was this patch tested? N/A (no code change, only add missing license)
What changes were proposed in this pull request? Add badges to README file Why are the changes needed? Fix: apache#1346 Does this PR introduce any user-facing change? No How was this patch tested? No need.
Let's follow the rule that only newly added files need to update the license year @diqiu50 . |
|
||
String containerIpMapping = output.toString(); | ||
if (containerIpMapping.isEmpty()) { | ||
throw new Exception("Missing to get container's ip"); |
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.
"Missing to get container's ip", it's difficult to understand the meaning.
} | ||
} | ||
} catch (Exception e) { | ||
throw new Exception("Failed to parse container ip:\n" + containerIpMapping, e); |
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.
Can we use a specific Exception here and below?
What changes were proposed in this pull request?
Make Trino QueryIT test cases running in ci.
To run Trino Query IT, a complete test environment including Hive, Iceberg, PostgreSQL, and MySQL dependencies is required. We need to set up this test environment and execute the test cases automatically.
Why are the changes needed?
Fix: #1247 #919
Does this PR introduce any user-facing change?
NO
How was this patch tested?
NO