Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(ingest): subtypes - standardize (#7437)
- Loading branch information
1 parent
8791155
commit bd45246
Showing
61 changed files
with
346 additions
and
283 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
40 changes: 40 additions & 0 deletions
40
metadata-ingestion/src/datahub/ingestion/source/common/subtypes.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
from enum import Enum | ||
|
||
|
||
class DatasetSubTypes(str, Enum): | ||
# Generic SubTypes | ||
TABLE = "Table" | ||
VIEW = "View" | ||
TOPIC = "Topic" | ||
SCHEMA = "Schema" | ||
# System-Specific SubTypes | ||
LOOKER_EXPLORE = "Explore" | ||
ELASTIC_INDEX_TEMPLATE = "Index Template" | ||
ELASTIC_INDEX = "Index" | ||
ELASTIC_DATASTREAM = "Datastream" | ||
SALESFORCE_CUSTOM_OBJECT = "Custom Object" | ||
SALESFORCE_STANDARD_OBJECT = "Object" | ||
|
||
|
||
class DatasetContainerSubTypes(str, Enum): | ||
# Generic SubTypes | ||
DATABASE = "Database" | ||
SCHEMA = "Schema" | ||
# System-Specific SubTypes | ||
PRESTO_CATALOG = "Catalog" | ||
BIGQUERY_PROJECT = "Project" | ||
BIGQUERY_DATASET = "Dataset" | ||
DATABRICKS_METASTORE = "Metastore" | ||
S3_FOLDER = "Folder" | ||
S3_BUCKET = "S3 bucket" | ||
|
||
|
||
class BIContainerSubTypes(str, Enum): | ||
LOOKER_FOLDER = "Folder" | ||
TABLEAU_WORKBOOK = "Workbook" | ||
POWERBI_WORKSPACE = "Workspace" | ||
|
||
|
||
class BIAssetSubTypes(str, Enum): | ||
# Generic SubTypes | ||
REPORT = "Report" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.