AbsaOSS / AbsaOSS/pramen

Add a metastore method that returns all available tables

Đang mở
#133 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
enhancement Pramen-Py Pramen-Scala
Ngôn ngữ chính
Scala
Star
31
Fork
4
Merge trung bình
1 ngày 10 phút
Pull request đã merge (30 ngày)
4

Mô tả

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

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.