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

   ## What's Changed
   
   This fixes Flight JDBC prepared statement binding for Arrow 
`DATE(MILLISECOND)`
   parameters.
   
   Avatica represents JDBC `DATE` values as days since the Unix epoch. The 
Flight
   JDBC parameter binder already writes that value correctly for 
`DateDayVector`,
   but it was also writing the same day value directly into `DateMilliVector`,
   which expects milliseconds since the Unix epoch.
   
   This now converts epoch days to epoch milliseconds before writing to
   `DateMilliVector`.
   
   Tested with `ArrowFlightPreparedStatementTest`.
   
   Closes #477.
   


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