mirror of
https://github.com/datahub-project/datahub.git
synced 2025-11-14 18:31:59 +00:00
fix(ingest/redshift): replace r'\n' with '\n' to avoid token error redshift serverless… (#11111)
This commit is contained in:
parent
e08412e513
commit
a4a887c866
@ -504,7 +504,11 @@ class RedshiftDataDictionary:
|
|||||||
yield AlterTableRow(
|
yield AlterTableRow(
|
||||||
transaction_id=row[field_names.index("transaction_id")],
|
transaction_id=row[field_names.index("transaction_id")],
|
||||||
session_id=session_id,
|
session_id=session_id,
|
||||||
query_text=row[field_names.index("query_text")],
|
# See https://docs.aws.amazon.com/redshift/latest/dg/r_STL_QUERYTEXT.html
|
||||||
|
# for why we need to replace the \n with a newline.
|
||||||
|
query_text=row[field_names.index("query_text")].replace(
|
||||||
|
r"\n", "\n"
|
||||||
|
),
|
||||||
start_time=row[field_names.index("start_time")],
|
start_time=row[field_names.index("start_time")],
|
||||||
)
|
)
|
||||||
rows = cursor.fetchmany()
|
rows = cursor.fetchmany()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user