Arawoof06 opened a new pull request, #1312:
URL: https://github.com/apache/arrow-java/pull/1312

   ## What's Changed
   
   `formatIntervalYear` and `formatIntervalDay` build the Oracle-style interval 
strings the JDBC interval accessor returns from `getString()`/`getObject()` 
with `String.format` and no explicit locale, so `java.util.Formatter` renders 
the `%d` digits using the JVM default locale. On a JVM whose default locale 
uses non-ASCII digits (`ar-EG`, `bn-BD`, `mr-IN`, ...) an interval comes back 
as `+٠٢١-٠٢` instead of `+021-02`, which corrupts the value handed to JDBC 
clients and breaks anything parsing it as ASCII. Pass `Locale.ROOT` to both 
calls, the same fix GH-1300 applied to the C Data Interface format strings.
   
   Closes #1311.


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