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
Expected the external_table column to be cast as the type described in 'type'.
{
name = "RECAPTCHA_ASSESSMENT_SCORE"
type = "NUMBER(2, 2)"
as = "GET($1, 'recaptcha_assessment_score')"
}
should become: RECAPTCHA_ASSESSMENT_SCORE NUMBER(2, 2) AS (TO_NUMBER(GET($1, 'recaptcha_assessment_score'), 2, 2))
Actual Behavior
It seems as though the precision specification is being ignored or replaced with the type default for the column type casting but not for the read expression type:
RECAPTCHA_ASSESSMENT_SCORE NUMBER(38,0) AS (TO_NUMBER(GET($1, 'recaptcha_assessment_score'), 2, 2))
We saw similar issues occur when type is:
VARCHAR(1000); It was changed to BOUNCE_REASON VARCHAR(16777216) AS (CAST(GET($1, 'bounce_reason') AS VARCHAR(1000)))
NUMBER(9,2); TRANSACTION_AMOUNT NUMBER(38,0) AS (TO_NUMBER(GET(VALUE, 'c10'), 9, 2))
Steps to Reproduce
terraform apply
How much impact is this issue causing?
High
Logs
No response
Additional Information
The file_formats for each of these occurrences varied between CSV, Custom JSON_GZIP, AVRO
It only seems to be an issue when we are not using the default precision for the type cast.
The text was updated successfully, but these errors were encountered:
Terraform CLI and Provider Versions
Terraform v1.6.1
Provider version 0.82.0
Terraform Configuration
Expected Behavior
Expected the external_table column to be cast as the type described in 'type'.
{
name = "RECAPTCHA_ASSESSMENT_SCORE"
type = "NUMBER(2, 2)"
as = "GET($1, 'recaptcha_assessment_score')"
}
should become: RECAPTCHA_ASSESSMENT_SCORE NUMBER(2, 2) AS (TO_NUMBER(GET($1, 'recaptcha_assessment_score'), 2, 2))
Actual Behavior
It seems as though the precision specification is being ignored or replaced with the type default for the column type casting but not for the read expression type:
RECAPTCHA_ASSESSMENT_SCORE NUMBER(38,0) AS (TO_NUMBER(GET($1, 'recaptcha_assessment_score'), 2, 2))
We saw similar issues occur when type is:
VARCHAR(1000); It was changed to BOUNCE_REASON VARCHAR(16777216) AS (CAST(GET($1, 'bounce_reason') AS VARCHAR(1000)))
NUMBER(9,2); TRANSACTION_AMOUNT NUMBER(38,0) AS (TO_NUMBER(GET(VALUE, 'c10'), 9, 2))
Steps to Reproduce
terraform apply
How much impact is this issue causing?
High
Logs
No response
Additional Information
The file_formats for each of these occurrences varied between CSV, Custom JSON_GZIP, AVRO
It only seems to be an issue when we are not using the default precision for the type cast.
The text was updated successfully, but these errors were encountered: