BigQuery loads RANGE and DECIMAL columns
BigQuery destinations now load tables with existing RANGE<DATE>, RANGE<DATETIME> or RANGE<TIMESTAMP> columns, and read DECIMAL or BIGDECIMAL columns without losing precision.
Read more: BigQuery loads RANGE and DECIMAL columns
BigQuery destinations now load RANGE and DECIMAL columns, which used to fail or lose precision. This applies to every BigQuery pipeline, across merge, append and streaming append, with no setting to change.
- RANGE: tables with an existing
RANGE<DATE>,RANGE<DATETIME>orRANGE<TIMESTAMP>column used to fail withunsupported data typeand now load. Values are parsed in the PostgreSQL range format, such as[a,b), including open-ended ranges like[a,)andinfinitybounds. Ranges BigQuery can't represent, such as(a,b),[a,b]orempty, fail the load with an error, and Artie never rewrites them or sets them to NULL. So does a range value the source left out because it was unchanged (a TOAST placeholder). - DECIMAL and BIGDECIMAL: existing columns of these types are read as
NUMERICandBIGNUMERIC, the types they alias, so values keep their precision. They used to be treated as floats.