AbsaOSS / AbsaOSS/pramen

Add a metastore method that returns all available tables

Abierto
#133 1 comentario 0 reacciones 0 asignados Ver en GitHub
enhancement Pramen-Py Pramen-Scala
Lenguaje dominante
Scala
Estrellas
31
Forks
4
Merge medio
1 d 10 min
PR fusionados (30 d)
4

Descripción

## Background
Since the metastore can be used as a library, it could be useful to enumerate which tables exist.

## Feature
Add a method to the metastore reader that lists all tables that are available.
- [ ] Scala
- [ ] Python

## Proposed Solution
```scala
val tables: Seq[String] = metastore.getTables()
```

An idea to discuss. Usually, metastores have the concept of databases. We can simulate it by a dot prefix (db.table1). We can use this to segregate uat and prod tables, for instance.
```scala
// Fetch all tables starting with 'uat.'
val tablesUat: Seq[String] = metastore.getTables("uat")
```

> Idea. What if instead of Seq[String] the method would return Seq[Table], which would contain table name and description?

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.