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

Aperta
#4,470 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

@zhangwl9 ci sta già lavorando.

Dal 28/10/2026.

  • #4471 di @zhangwl9 — aperta

Valutazione

Difficoltà
4/5
Tempo stimato
1-2 giorni
Idoneità per principianti
25/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Ferma
Stack tecnologico
databases, java
Ambito
backend, databases

Direzione di ricerca

The report does not name source files or tests. Start by tracing how the Hive catalog uses its warehouse setting when listing databases and tables from the shared metastore. Reproduce with the two warehouses in the steps; done means each catalog lists and opens only objects belonging to its own warehouse. Pull request #4471 is already open for this issue.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

type:bug
What happened?

When several Lance catalogs are registered against the same Hive metastore but with
different warehouses (e.g. one lance_hive_s3 on s3://bucket/s1, one lance_hive_local on a local path), each catalog lists the databases and tables that belong to the other catalog's warehouse.

Expected

lance_hive_s3 shows only lance_db_zos tables.

Actual

lance_hive_s3 shows lance_db_local 、lance_db_zos and can open person_lance_local, even though lance_db_local lives under
/data/local1 rather than s3://bucket/s1 . The two catalogs see each other's databases and tables.

Image Image
Affects Versions

master

What table formats are you seeing the problem on?

No response

What engines are you seeing the problem on?

AMS

How to reproduce
  1. Start an HMS and register two catalogs of type hive with format LANCE:
    • lance_hive_s3: warehouse s3://bucket/s1
    • lance_hive_local: warehouse /data/local1, same metastore uri
  2. In lance_hive_local create database lance_db_local and table t1.
  3. In lance_hive_s3 create database lance_db_zos and table t2.
  4. Open the catalog list / database list of lance_hive_s3 in the dashboard.
Relevant log output

Anything else

No response

Are you willing to submit a PR?
  • Yes I am willing to submit a PR!
Code of Conduct
  • I agree to follow this project's Code of Conduct
Lingua principale
Java
Stelle
1.2k
Fork
399
Merge medio
4g 8h
PR unite (30g)
24

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di apache/amoro

Tutte le issue di apache/amoro

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.