siying opened a new pull request, #41409:
URL: https://github.com/apache/spark/pull/41409

   ### What changes were proposed in this pull request?
   Add a logical type "custom-decimal" in Avro, which can only be backed by 
physical type long, and will be convert into decimal type.
   
   ### Why are the changes needed?
   A user would like to represent currency (for money) after loading Avro into 
SQL type. However, there isn't a good way to represent it in Avro. This custom 
type will allow them to do that.
   
   
   ### Does this PR introduce _any_ user-facing change?
   No.
   
   
   ### How was this patch tested?
   Added several unit test cases to test the new "custom-decimal" to be loaded 
successfully and also exception cases.
   


-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to