Omega359 commented on issue #14008:
URL: https://github.com/apache/datafusion/issues/14008#issuecomment-2629085175

   I just upgraded my project to latest main from DF 42. The primary 
compilation and test suite issues I encountered after setting 
`datafusion.execution.parquet.schema_force_view_types` -> false (I'm going to 
fix all my .as_string_array(..) and utf8 datatype assumptions later):
   
   utf8view, i32 comparison no longer worked
   ```
   .with_column(
               STRING_FIELD,
               when(col(STRING_FIELD).eq(lit(83)), 
lit(82)).otherwise(col(STRING_FIELD))?,
           )?
   ```
   switching to the obvious change below worked
   ```
   .with_column(
               STRING_FIELD,
               when(col(STRING_FIELD).eq(lit("83")), 
lit("82")).otherwise(col(STRING_FIELD))?,
           )?
   ```
   
   i32 -> utf8view coercion in udf's stopped working. For example: 
`regexp_like(field_a, '[^0-9]')` where field_a is an int field. changed to 
`regexp_like(field_a::varchar, '[^0-9]')`
   
   Auto coercion of date/timestamp to utf8 no longer worked. I had to update my 
code to use `to_char` function to properly write out the date/timestamp. Not a 
bad thing really.
   
   I'll likely do a full data run with this early next week.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org
For additional commands, e-mail: github-h...@datafusion.apache.org

Reply via email to