Skip to content

[AMORO-4470] Hide databases and tables outside the catalog warehouse - #4471

Open
zhangwl9 wants to merge 4 commits into
apache:masterfrom
zhangwl9:amoro-fix-lance-hms-dev
Open

zhangwl9 wants to merge 4 commits into
apache:masterfrom
zhangwl9:amoro-fix-lance-hms-dev

Conversation

@zhangwl9

@zhangwl9 zhangwl9 commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

Why are the changes needed?

Close #4470 .

Brief change log

-Scope listDatabases / listTables to the configured warehouse: compare each database's
database.location-uri (and short-circuit listTables for databases outside the
warehouse) against the warehouse value as read back from HMS
(file:///p is stored as file:/p).

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
    before:

image

after:
image

  • Run test locally before making a pull request

Documentation

  • Does this pull request introduce a new feature? (yes / no)
  • If yes, how is the feature documented? (not applicable / docs / JavaDocs / not documented)

@zhangwl9
zhangwl9 force-pushed the amoro-fix-lance-hms-dev branch 2 times, most recently from e5c5e25 to 5953bd2 Compare October 28, 2026 12:11
@zhangwl9
zhangwl9 force-pushed the amoro-fix-lance-hms-dev branch from 5953bd2 to f98c884 Compare November 6, 2026 10:25
@zhangwl9
zhangwl9 force-pushed the amoro-fix-lance-hms-dev branch from f98c884 to f3f40f5 Compare November 12, 2026 07:30

This branch has not been deployed

No deployments
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.

[Bug]: Lance-Hive catalog lists databases and tables of other warehouses sharing the same HMS

1 participant