YuweiXiao commented on issue #5740:
URL: https://github.com/apache/hudi/issues/5740#issuecomment-1161333925

   > 
   
   
   
   > @YuweiXiao The root cause is that AVRO serializes Decimal type to bytes. 
However, for DECIMAL(10,4), Spark writes as int64.
   > 
   > ```
   > message spark_schema {
   >   optional int64 id (DECIMAL(10,4));
   > }
   > ```
   > 
   > For more details, see 
[sksamuel/avro4s#271](https://github.com/sksamuel/avro4s/issues/271).
   
   Yes, disabling vectorized read is a workaround. What do you think about the 
solution I mentioned above, i.e., auto-disable vectorization and respect 
user-defined configs. 


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to