AbsaOSS / AbsaOSS/pramen

Add a metastore method that returns all available tables

未关闭
#133 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
enhancement Pramen-Py Pramen-Scala
主要语言
Scala
星标
31
派生
4
平均合并
1 天 10 分钟
30 天内合并 PR
4

描述

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

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。