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

refactor: simplify get_tables_history() #16572

Merged
merged 1 commit into from
Oct 9, 2024

Conversation

drmingdrmer
Copy link
Member

@drmingdrmer drmingdrmer commented Oct 9, 2024

I hereby agree to the terms of the CLA available at: https://docs.databend.com/dev/policies/cla/

Summary

refactor: simplify get_tables_history()

Make this method return TableNIV instead of TableInfo. TableInfo
includes information that SchemaApi can not provide.

Tests

  • Unit Test
  • Logic Test
  • Benchmark Test
  • No Test - Explain why

Type of change

  • Refactoring

Related Issues


This change is Reviewable

Make this method return `TableNIV` instead of `TableInfo`. TableInfo
includes information that `SchemaApi` can not provide.
@github-actions github-actions bot added the pr-refactor this PR changes the code base without new features or bugfix label Oct 9, 2024
@drmingdrmer drmingdrmer marked this pull request as ready for review October 9, 2024 03:28
Copy link
Collaborator

@TCeason TCeason left a comment

Choose a reason for hiding this comment

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

LGTM. And better to use TableNiv refactor get_table_meta_history ? https://github.com/databendlabs/databend/blob/main/src/meta/api/src/schema_api.rs#L206

@drmingdrmer
Copy link
Member Author

LGTM. And better to use TableNiv refactor get_table_meta_history ? https://github.com/databendlabs/databend/blob/main/src/meta/api/src/schema_api.rs#L206

Yes

@drmingdrmer drmingdrmer merged commit 0c8d546 into databendlabs:main Oct 9, 2024
77 of 78 checks passed
@drmingdrmer drmingdrmer deleted the 157-get_tables_history branch October 9, 2024 06:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr-refactor this PR changes the code base without new features or bugfix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants