Skip to content

Commit

Permalink
add view definition aspect
Browse files Browse the repository at this point in the history
  • Loading branch information
acrylJonny committed Oct 23, 2024
1 parent ff211af commit 459cfc8
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,15 @@ def populate_dataset_mcp(
)
yield mcp.as_workunit()

# View Definition
if dataset.dataset_type == DremioDatasetType.VIEW:
view_definition = self._create_view_properties(dataset)
mcp = MetadataChangeProposalWrapper(
entityUrn=dataset_urn,
aspect=view_definition,
)
yield mcp.as_workunit()

# Glossary Terms
if dataset.glossary_terms:
glossary_terms = self._create_glossary_terms(dataset)
Expand Down

0 comments on commit 459cfc8

Please sign in to comment.