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

[#1449] feat(catalogs): Introudce new module bundled-catalog for query engine. #1454

Merged
merged 18 commits into from
Jan 15, 2024

Conversation

yuqi1129
Copy link
Contributor

@yuqi1129 yuqi1129 commented Jan 11, 2024

What changes were proposed in this pull request?

  • Add a new module bundled-catalog to hold common information like property meta of all catalogs
  • Put bundled-catalog to trino-connector dependency and verify everything is OK.

Why are the changes needed?

We need a common module to hold the property meta of all catalogs so that the query engine depends on it can use it for query.

Fix: #1449

Does this PR introduce any user-facing change?

N/A

How was this patch tested?

Add some UT in module Trino-connector

@yuqi1129 yuqi1129 self-assigned this Jan 11, 2024
exclude("**/*.conf")
exclude("**/*.so")
exclude("**/*.sxd")
exclude("**/*.ddl")
Copy link
Contributor

Choose a reason for hiding this comment

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

Did you exclude everything and only leave something you wanted?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, the final jar is like this.

image

@yuqi1129
Copy link
Contributor Author

@jerryshao @diqiu50
Please take a look again, thanks.

@jerryshao jerryshao closed this Jan 12, 2024
@jerryshao jerryshao reopened this Jan 12, 2024
@yuqi1129 yuqi1129 closed this Jan 15, 2024
@yuqi1129 yuqi1129 reopened this Jan 15, 2024
@@ -77,12 +77,12 @@ dependencies {
tasks {
val copyDepends by registering(Copy::class) {
from(configurations.runtimeClasspath)
into("build/libs")
into("build/libs_all")
Copy link
Contributor

Choose a reason for hiding this comment

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

What is the purpose of this change?

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 build and copyDepends tasks of catalog-hive use the same output directory 'build/libs', which is needed by task shadowJar in bundled-catalog, gradle will get errors and says "task shadowJar depends on task copyDepends".

Copy link
Contributor

Choose a reason for hiding this comment

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

You'd better add comment on the file to describe it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added.

@yuqi1129 yuqi1129 changed the title [#1449] feat(catalogs): Introudce new module catalog-common for query engine. [#1449] feat(catalogs): Introudce new module bundled-catalog for query engine. Jan 15, 2024
@jerryshao jerryshao merged commit 04c87b8 into apache:main Jan 15, 2024
12 checks passed
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 'catalog-common' module to hold common information needed by query engine
3 participants