Skip to content
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

feat(ingest/snowflake): Add feature flag for view defintions #10914

Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,11 @@ class SnowflakeV2Config(
description="If enabled, populates the snowflake usage statistics. Requires appropriate grants given to the role.",
)

include_view_definitions: bool = Field(
default=True,
description="If enabled, populates the ingested views' definitions.",
)
ethan-cartwright marked this conversation as resolved.
Show resolved Hide resolved

include_technical_schema: bool = Field(
default=True,
description="If enabled, populates the snowflake technical schema and descriptions.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -753,7 +753,11 @@ def gen_dataset_workunits(
view_properties_aspect = ViewProperties(
materialized=table.materialized,
viewLanguage="SQL",
viewLogic=table.view_definition,
viewLogic=(
table.view_definition
if self.config.include_view_definitions
else None
),
)

yield MetadataChangeProposalWrapper(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ record ViewProperties {
/**
* The view logic
*/
viewLogic: string
viewLogic: optional string

/**
* The formatted view logic. This is particularly used for SQL sources, where the SQL
Expand Down
Loading