-
Notifications
You must be signed in to change notification settings - Fork 298
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
[AMORO-1870]: Support table filters to make AMS ignore tables that are not needed #1879
Conversation
Thanks for your work! You can add resolve #1879 to relate to the issue. |
The code looks good to me, but there are some check style issues to fix. |
Codecov ReportPatch coverage is
📢 Thoughts on this report? Let us know!. |
Thank you for submitting your Pull Request. I'm considering using two different configuration items to decide the database and table filters separately, is it a good style? Can we use one configuration item to solve this problem? @zhoujinsong What's your point of view? |
It must be acknowledged that using 2 configurations cannot solve the situation where there are tables with the same name in different databases. Therefore, I think the introduced parameter should consider both the database name and the table name. BTW, for compatibility reasons, the previous |
Yes, there are indeed configuration complexities and limitations when using two expressions to filter databases and tables. My idea is to make the configuration
If designed in this way, HDYT? @wangtaohz @baiyangtx @celltobig |
I think it's a very feasible way to do it. However, there are two small issues:
2.How about changing the |
Sure, I have changed it in the comment.
I do not like the configuration 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.
LGTM
ams/api/src/main/java/com/netease/arctic/ams/api/properties/CatalogMetaProperties.java
Outdated
Show resolved
Hide resolved
Co-authored-by: ZhouJinsong <zhoujinsong0505@163.com>
…talogMetaProperties.java Co-authored-by: ZhouJinsong <zhoujinsong0505@163.com>
…e not needed (apache#1879) * [AMORO-1870]: table filter apache#1870 \n * add table filter * fix check style * fix gitignore * fix db table filter * fix table filter * Update managing-catalogs.md and change docs * fix checkstyle * fix change table filter key * change table filter md * Update managing-catalogs.md * Add Deprecated annotation * Update docs/admin-guides/managing-catalogs.md Co-authored-by: ZhouJinsong <zhoujinsong0505@163.com> * Update ams/api/src/main/java/com/netease/arctic/ams/api/properties/CatalogMetaProperties.java Co-authored-by: ZhouJinsong <zhoujinsong0505@163.com> * fix check style --------- Co-authored-by: 刘政 <zhengliu@gaojihealth.com> Co-authored-by: wangtaohz <103108928+wangtaohz@users.noreply.github.com> Co-authored-by: wangtao <wangtao3@corp.netease.com> Co-authored-by: ZhouJinsong <zhoujinsong0505@163.com>
Why are the changes needed?
Resolve #1870.
AMS has a database filter, but not a table filter.
Brief change log
How was this patch tested?
Add some test cases that check the changes thoroughly including negative and positive cases if possible
Add screenshots for manual tests if appropriate
Run test locally before making a pull request
Documentation