-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor Unity Catalog to fetch catalog/schema/table metadata from System tables #1022
Refactor Unity Catalog to fetch catalog/schema/table metadata from System tables #1022
Conversation
76c7f35
to
21d58eb
Compare
☂️ Python Coverage
Overall Coverage
New Files
Modified Files
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1022 +/- ##
==========================================
+ Coverage 89.26% 89.31% +0.05%
==========================================
Files 202 203 +1
Lines 13194 13282 +88
==========================================
+ Hits 11777 11863 +86
- Misses 1417 1419 +2 ☔ View full report in Codecov by Sentry. |
5a70db7
to
78b6e88
Compare
78b6e88
to
c485a49
Compare
Co-authored-by: Tsung-Ju Lii <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
update pyproject.toml and it's good
…ma-in-unity-catalog
fix add test Refactor Unity Catalog to fetch catalog/schema/table metadata from System tables (#1022) fix stuff finish test finish test add docs bump version fix lock fix ci Delete tests/great_expectations/snowflake/config.yml add git ignore remove everything
🤔 Why?
Fetching metadata from system.information_schema is preferred over individual catalog's
information_schema
, as the former doesn't require grantingSELECT
permission to all tables.Note that
SELECT
permission is still required to retrieve a table's properties & last refresh date as they're not available from varioussystem
tables.🤓 What?
system.information_schema
. The only exception is IAM-related metadata, which is only available via REST APIs.queries.py
to make testing easier and better organization.🧪 Tested?
Tested end-to-end against a product instance. Verified that the before & after MCEs are the same except:
Columns
precision
for date-related types is set.nullable
&tag
are set.nativeType
.Table properties
SHOW TBLPROPERTIES
command.Hierarchy:
createdAtSource
,createdBy
,lastUpdated
,updatedBy
insourceInfo
systemContacts
&systemDescription
☑️ Checks
pyproject.toml
.