wangyum opened a new pull request #32090:
URL: https://github.com/apache/spark/pull/32090


   ### What changes were proposed in this pull request?
   
   This pr makes it support the data is written as integral type and read as 
decimal type with 0 scala. For example:
   ```scala
   import org.apache.spark.sql.types.StructType
   
   spark.sql("SELECT 1L AS a").write.parquet("/tmp/SPARK-34212")
   spark.read.schema(StructType.fromDDL("a decimal(18, 
0)")).parquet("/tmp/SPARK-34212").show
   ```
   
   ### Why are the changes needed?
   
   It is supported before SPARK-34212.
   
   ### Does this PR introduce _any_ user-facing change?
   
   No.
   
   ### How was this patch tested?
   
   Unit test.
   


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

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