comphead commented on code in PR #1687: URL: https://github.com/apache/datafusion-comet/pull/1687#discussion_r2093701858
########## native/core/src/parquet/parquet_support.rs: ########## @@ -171,7 +178,36 @@ fn cast_array( .with_timezone(Arc::clone(tz)), )) } - _ => Ok(cast_with_options(&array, to_type, &PARQUET_OPTIONS)?), + // If Arrow cast supports the cast, delegate the cast to Arrow + _ if can_cast_types(from_type, to_type) => { + Ok(cast_with_options(&array, to_type, &PARQUET_OPTIONS)?) + } + _ => Ok(array), Review Comment: Well it depends, for now we just ignore the casting as we cannot find a proper handler leaving the data as it comes from Spark propagating the responsibility to the caller. returning Error also makes sense to identify such unsupported pairs of type sooner than later by getting the error. I dont have a strong opinion here, WDYT which one would serve better? -- 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