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

support information_schema.PARAMETERS query in cluster mod #28620

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

lujx98
Copy link
Contributor

@lujx98 lujx98 commented Sep 28, 2023

Fixes #24378.

Changes proposed in this pull request:
support information_schema.PARAMETERS query in cluster mod


Before committing this PR, I'm sure that I have checked the following options:

  • [√] My code follows the code of conduct of this project.
  • [√ ] I have self-reviewed the commit code.
  • I have (or in comment I request) added corresponding labels for the pull request.
  • [ √] I have passed maven check locally : ./mvnw clean install -B -T1C -Dmaven.javadoc.skip -Dmaven.jacoco.skip -e.
  • I have made corresponding changes to the documentation.
  • I have added corresponding unit tests for my changes.

@strongduanmu
Copy link
Member

Hi @JustRun98, can you take a look for checkstyle error?

@lujx98
Copy link
Contributor Author

lujx98 commented Sep 30, 2023

Hi @JustRun98, can you take a look for checkstyle error?

I have fix it

if (CLUSTER_INFORMATION.equals(entry.getKey())) {
tableData.getRows().add(new ShardingSphereRowData(Collections.singletonList(ShardingSphereVersion.VERSION)));

Optional<ShardingSphereSchema> informationSchemaSchema = Optional.ofNullable(metaData.getDatabase("information_schema")).map(database -> database.getSchema("information_schema"));
Copy link
Contributor

Choose a reason for hiding this comment

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

I think information_schema should in shardingsphere database.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@tuichenchuxin
are you guys expect that all the metadata table's data should presist in shardingsphere database?
I think if so the databases like information_schema will be totally useless

Copy link
Contributor

Choose a reason for hiding this comment

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

it'll be like this.

database:shardingsphere
- schema: information_schema

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support mainstream database metadata table query
3 participants