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

[#1247] Improvement (trino-connector) Make Trino QueryIT test cases running in ci. #1262

Merged
merged 56 commits into from
Jan 8, 2024

Conversation

diqiu50
Copy link
Contributor

@diqiu50 diqiu50 commented Dec 26, 2023

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

@diqiu50 diqiu50 self-assigned this Dec 26, 2023
@diqiu50 diqiu50 closed this Dec 26, 2023
@diqiu50 diqiu50 reopened this Dec 26, 2023
@diqiu50 diqiu50 closed this Dec 27, 2023
@diqiu50 diqiu50 reopened this Dec 27, 2023
@diqiu50 diqiu50 closed this Dec 27, 2023
@diqiu50 diqiu50 reopened this Dec 27, 2023
@@ -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
Copy link
Member

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?

Copy link
Contributor Author

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.

xunliu
xunliu previously approved these changes Jan 5, 2024
Copy link
Member

@xunliu xunliu left a 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

@diqiu50
Copy link
Contributor Author

diqiu50 commented Jan 5, 2024

@jerryshao Please take a review.

diqiu50 and others added 7 commits January 8, 2024 15:08
…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.
@diqiu50 diqiu50 requested a review from jerryshao January 8, 2024 07:26
@jerryshao
Copy link
Contributor

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");
Copy link
Contributor

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);
Copy link
Contributor

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?

@jerryshao jerryshao merged commit b8c8179 into apache:main Jan 8, 2024
11 checks passed
@diqiu50 diqiu50 deleted the trino-connector-ut branch January 18, 2024 12:36
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] Make Trino Query IT test cases running in ci
8 participants