Redshift Late binding views where column type has no precision or length result in Error syncing Fields for Table #21215
Labels
Administration/Metadata & Sync
Database/Redshift
Priority:P2
Average run of the mill bug
Type:Bug
Product defects
Milestone
Describe the bug
Late binding views in redshift that contain datatype
character varying
ornumeric
without char length or decimal precision result in field-sync failure and render the table useless in Metabase UI as no fields can be found.We find a number of scenarios cause this:
CASE WHEN
result in NUMERIC (show in example)NULL as results
in CHARACTER VARYING (shown in example)'random_fixed_string' AS field_name
results in CHARACTER VARYING (although not reproducible below)Logs
metabase logs:
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Metabase to be able to use the late binding view numeric / character varying without issue and allow for column syncing.
See the SQL query to identify all late binding view fields that are currently posing a problem:
Screenshots
If applicable, add screenshots to help explain your problem.
Information about your Metabase Installation:
You can get this information by going to Admin -> Troubleshooting.
Severity
It is quite problematic for anyone using DBT and Redshift with Metabase as the work around is to CAST every single field that poses this issue.
Additional context
We have the latest version of Metabase loaded.
⬇️ Please click the 👍 reaction instead of leaving a
+1
orupdate?
commentThe text was updated successfully, but these errors were encountered: