Eugene-Mark opened a new pull request, #36499:
URL: https://github.com/apache/spark/pull/36499

   ### What changes were proposed in this pull request?
    - Implemented getCatalystType method in TeradataDialect
    - Handle Types.NUMERIC explicitly
   
   ### Why are the changes needed?
   Load table from Teradata, if the type of column in Teradata is `Number`, it 
will be converted to `DecimalType(38,0)` can lose the fractional part of 
original data.
   
   ### Does this PR introduce _any_ user-facing change?
   Yes, it will convert Number type to DecimalType(38,18) if the scale is 0, so 
that keep the fractional part in some way.
   
   ### How was this patch tested?
   UT is added to JDBCSuite.scala.
   
   


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