-
- Downloads
Add support for the "CHARACTER VARYING" and NUMERIC Redshift type (#14496)
CHARACTER VARYING seems to be an official Redshift type; see: https://docs.aws.amazon.com/redshift/latest/dg/r_Character_types.html#r_Character_types-varchar-or-character-varying It doesn't always seem to show up. For example, in a plain CREATE TABLE then that DDL actually is seen by Metabase as "varchar" still. But if a late binding view is created pointing to that table, then it can show up thusly NUMERIC is a straight up synonym for DECIMAL; see: https://docs.aws.amazon.com/redshift/latest/dg/r_Numeric_types201.html#r_Numeric_types201-decimal-or-numeric-type Using the database-type->base-type mechanism to recognize these type name and treat them as :type/Text and :type/Decimal respectively, while delegating to the parent (Postgres) types for any others Adding a test that creates a table with both and late binding view of that, and asserts the correct types are synced
Showing
Please register or sign in to comment