Connecting to Postgres using Dremio Community 4.01, I get this error: UnsupportedOperationException: BigDecimal scale must equal that in the Arrow vector: 13 != 10
This is with a query: select * from users
Work-around: select *, 1 from users
This suggests it’s not an issue interpreting a numeric (i.e. decimal) field.
PostgreSQL 9.6.15 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-36), 64-bit
This error is caused by having numeric type columns in your Posgres table which did not have the precision or scale specified. Dremio 4.1.x will now simply truncate the values in this column to the smallest scale it encounters instead of throwing the error.
You can also fix this by altering the Postgres table to specify the precision and scale for the numeric columns where they are unspecified (e.g. column_a decimal --> column_a decimal(38,16))