mirror of
https://github.com/datahub-project/datahub.git
synced 2025-09-21 07:03:01 +00:00
fix(ingest/tableau): handle missing query in tableau views (#7186)
This commit is contained in:
parent
389aa8c1d0
commit
b24f206e04
@ -920,7 +920,7 @@ class TableauSource(StatefulIngestionSourceBase):
|
|||||||
view_properties = ViewPropertiesClass(
|
view_properties = ViewPropertiesClass(
|
||||||
materialized=False,
|
materialized=False,
|
||||||
viewLanguage="SQL",
|
viewLanguage="SQL",
|
||||||
viewLogic=clean_query(csql.get("query", "")),
|
viewLogic=clean_query(csql.get("query") or ""),
|
||||||
)
|
)
|
||||||
dataset_snapshot.aspects.append(view_properties)
|
dataset_snapshot.aspects.append(view_properties)
|
||||||
|
|
||||||
|
@ -616,7 +616,7 @@ def get_unique_custom_sql(custom_sql_list: List[dict]) -> List[dict]:
|
|||||||
return unique_custom_sql
|
return unique_custom_sql
|
||||||
|
|
||||||
|
|
||||||
def clean_query(query):
|
def clean_query(query: str) -> str:
|
||||||
"""
|
"""
|
||||||
Clean special chars in query
|
Clean special chars in query
|
||||||
"""
|
"""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user