Skip to content

Commit ec7944c

Browse files
authored
fix(snowflake-driver): Fix type mapping for fixed type (cube-js#10258)
1 parent 109fb78 commit ec7944c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/cubejs-snowflake-driver/src/SnowflakeDriver.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,9 @@ const SnowflakeToGenericType: Record<string, GenericDataBaseType> = {
100100
// It's a limitation for now, because anyway we don't work with JSON objects in Cube Store.
101101
object: 'HLL_SNOWFLAKE',
102102
number: 'decimal',
103+
// For some reason, snowflake SDK returns `fixed` type for DWH types like NUMBER(38, 15)
104+
// @see https://docs.snowflake.com/en/sql-reference/data-types-numeric for more info on types
105+
fixed: 'decimal',
103106
timestamp_ntz: 'timestamp'
104107
};
105108

0 commit comments

Comments
 (0)