AbsaOSS / AbsaOSS/pramen

Add a metastore method that returns all available tables

Aperta
#133 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
enhancement Pramen-Py Pramen-Scala
Lingua principale
Scala
Stelle
31
Fork
4
Merge medio
1g 10m
PR unite (30g)
4

Descrizione

## 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?

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.