Iām using Autoloader to read Parquet files and write them to a Delta table. I want to enforce a schema in which Column1 is defined as DECIMAL(10,2). However, in the Parquet files being ingested, Column1 is defined as DECIMAL(8,2).
When Autoloader reads the file, it considers this a schema mismatch and moves the column into _rescued_data.
Iāve tried specifying the schema explicitly using .schema() as well as using schemaHints, but neither approach resolves the issue ā Autoloader still treats the field as incompatible and rescues it.
I've also tried with changing the values for "cloudFiles.inferColumnTypes" and "cloudFiles.schemaEvolutionMode", but nothing works.
Is it possible to upcast DECIMAL with autoloader? If so, how?