You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Redshift (and other dbms) have an EXTRACT(datepart FROM source) function. Unfortunately, replace-script-table-names interprets the FROM part as a table name, tries to replace it and fails.
To Reproduce
Steps to reproduce the behavior:
Have a model that contains a column that extracts month from a date column: EXTRACT(MONTH FROM date_column) AS just_month.
Run replace-script-table-names pre-commit check, it will fail with an error:
Unable to replace table date_column with ref or source.
Expected behavior
The check should pass.
Version:
v1.2.0
Additional context
N/A
The text was updated successfully, but these errors were encountered:
Describe the bug
Redshift (and other dbms) have an
EXTRACT(datepart FROM source)
function. Unfortunately,replace-script-table-names
interprets theFROM
part as a table name, tries to replace it and fails.To Reproduce
Steps to reproduce the behavior:
EXTRACT(MONTH FROM date_column) AS just_month
.replace-script-table-names
pre-commit check, it will fail with an error:Expected behavior
The check should pass.
Version:
v1.2.0
Additional context
N/A
The text was updated successfully, but these errors were encountered: