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

   ### What changes were proposed in this pull request?
   Mapped TINYINT to ShortType for MsSqlServerDialect
   
   ### Why are the changes needed?
   TINYINT of SQL server is not correctly mapped to spark types when using JDBC 
connector. For now, it is mapped to the `IntegerType`, which is not accurate. 
It should be mapped to `ShortType`.
   
   ### Does this PR introduce _any_ user-facing change?
   Yes, after the change, `TINYINT` of SQL server will be mapped to `ShortType`
   
   
   ### How was this patch tested?
   UT
   
   
   ### Was this patch authored or co-authored using generative AI tooling?
   No
   


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