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
I have searched the existing issues, and I could not find an existing issue for this bug
Current Behavior
04:26:08 1 of 1 START sql table model sta_datamart_dev.pma_segmentation_v3 .............. [RUN]
04:26:12 Detected columns with numeric type and unspecified precision/scale, this can lead to unintended rounding: ['gmv_d90_transfer', 'revenue_d90_transfer']`
Is the '`' symbol in the end of the log the expected result?
Expected Behavior
04:26:08 1 of 1 START sql table model sta_datamart_dev.pma_segmentation_v3 .............. [RUN]
04:26:12 Detected columns with numeric type and unspecified precision/scale, this can lead to unintended rounding: ['gmv_d90_transfer', 'revenue_d90_transfer']
Steps To Reproduce
I'm using BigQuery, and the issue can be reproduced by creating a table without assigning precision and scale to the numeric data type column.
This looks like it was unintentional or vestigial to me. But it also seems like it isn't causing any harm -- just a rogue extra character -- does that sound right?
Regardless, it seems like the fix would be easy, just remove the ~ "`" part from here:
{{ exceptions.warn("Detected columns with numeric type and unspecified precision/scale, this can lead to unintended rounding: " ~ col_naked_numeric ~ "`") }}
I would expect these two test cases to still pass after that change:
Is this a new bug in dbt-core?
Current Behavior
Is the '`' symbol in the end of the log the expected result?
Expected Behavior
Steps To Reproduce
I'm using BigQuery, and the issue can be reproduced by creating a table without assigning precision and scale to the numeric data type column.
Relevant log output
No response
Environment
Which database adapter are you using with dbt?
bigquery
Additional Context
No response
The text was updated successfully, but these errors were encountered: