[Bug]: Combined Hive table list does not follow the type and name sort order
Los mantenedores suelen responder en 2 días
Evaluación
Este issue todavía no se ha evaluado.
Descripción
What happened?
TableController.getTableList sorts managed entries by type and name before appending unmanaged Hive entries. In a Hive catalog containing a managed Iceberg table and an unmanaged Hive table, the response puts ICEBERG before HIVE, contrary to the comparator applied to the managed list. The combined response should use the same type/name order.
Affects Versions
Reproduced on master at 9442f8c. Released versions have not been checked.
What table formats are you seeing the problem on?
Mixed-Hive, Iceberg and unmanaged Hive tables
What engines are you seeing the problem on?
AMS
How to reproduce
- Use a Hive catalog where
ServerCatalog.listTablesreturnsiceberg_awith format ICEBERG. - Have HMS return an unmanaged table named
hive_a. - Call
TableController.getTableListfor the database. - The response order is
iceberg_a:ICEBERG, hive_a:HIVE; applying the existing type/name comparator to the combined list giveshive_a:HIVE, iceberg_a:ICEBERG.
The regression test calls the actual controller and captures its response, mocking catalog access and the HMS lookup.
Relevant log output
The combined-list and keyword-filtered order assertions fail on the original implementation.
Anything else
Proposed fix: Move the existing type/name comparator after managed and unmanaged Hive entries have been combined. Cover combined ordering, managed-name deduplication, keyword filtering and non-Hive catalogs.
Code was assisted by DeepSeek v4 Flash via Reasonix 1.39.4; submission text was assisted by Codex. The patch and local test results were reviewed.
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
- Lenguaje dominante
- Java
- Estrellas
- 1.2k
- Forks
- 399
- Merge medio
- 4 d 8 h
- PR fusionados (30 d)
- 24
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de apache/amoro
-
type:improvement
Dificultad 1/5 Menos de una hora Aptitud para principiantes 85/100
Los mantenedores suelen responder en 2 días
-
[Bug]: Failed to run './dev/dependencies.sh --replace' on Windows Git BashPosiblemente ocupada @smallyao la tomó hace 4 días. Abiertotype:bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
Los mantenedores suelen responder en 2 días
-
[CI] Core CI doesn't run for changes to amoro-format-lance (and amoro-web)Posiblemente ocupada @MarkAlex1234 la tomó hace 27 días. Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
Los mantenedores suelen responder en 2 días
-
[Bug]: Lance-Hive catalog lists databases and tables of other warehouses sharing the same HMSPosiblemente ocupada @zhangwl9 la tomó hace 4 días. Abiertotype:bug
Dificultad 4/5 1-2 días Aptitud para principiantes 25/100
Los mantenedores suelen responder en 2 días
-
[Bug]: Overview top-table cache is not published atomicallyPosiblemente ocupada @sivakumar-mahalingam la tomó hace 10 días. Abiertotype:bug
apache/amoro#4462 · 1 comentario · 1 asignado ·
Los mantenedores suelen responder en 2 días
Todos los issues de apache/amoro
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día
-
EpssMirrorTask leaks temp file on failed download and has no request timeoutPosiblemente ocupada @someshhh-45 la tomó hoy. Abiertodefect in triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
DependencyTrack/dependency-track#7845 ·
Los mantenedores suelen responder en 1 día
-
[Bug]: WriteFileTool shows "Error reading file" snippet for relative paths when baseDir is setPosiblemente ocupada @ShryukGrandhi la tomó hoy. Abierto
Dificultad 2/5 Menos de una hora Aptitud para principiantes 86/100
agentscope-ai/agentscope-java#3917 ·
Los mantenedores suelen responder en 1 día
-
enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
apache/maven-checkstyle-plugin#735 ·
Los mantenedores suelen responder en 1 día