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

fix(ingest/redshift): fix stl scan lineage for lineage v2 #9986

Merged
merged 1 commit into from
Mar 6, 2024
Merged
Show file tree
Hide file tree
Changes from all 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 @@ -271,7 +271,11 @@ def _process_stl_scan_lineage(self, lineage_row: LineageRow) -> None:
platform_instance=self.config.platform_instance,
)

assert lineage_row.ddl, "stl scan entry is missing query text"
if lineage_row.ddl is None:
logger.warning(
f"stl scan entry is missing query text for {lineage_row.source_schema}.{lineage_row.source_table}"
)
return
self.aggregator.add_known_query_lineage(
KnownQueryLineageInfo(
query_text=lineage_row.ddl,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ def stl_scan_based_lineage_query(
username as username,
source_schema,
source_table,
querytxt as query, -- TODO: this querytxt is truncated to 4000 characters
querytxt as ddl, -- TODO: this querytxt is truncated to 4000 characters
starttime as timestamp
from
(
Expand Down
Loading