lriggs commented on code in PR #55864:
URL: https://github.com/apache/arrow/pull/55864#discussion_r4773865571


##########
cpp/src/arrow/flight/sql/odbc/odbc_impl/util.cc:
##########
@@ -906,6 +907,42 @@ std::shared_ptr<Array> CheckConversion(const 
arrow::Result<Datum>& result) {
   }
 }
 
+namespace {
+int64_t UnitsPerSecond(TimeUnit::type unit) {

Review Comment:
   I think you could resuse this existing helper function here and in the test 
file:
   
   const int64_t units_per_second = 
arrow::util::GetTimestampConversion(TimeUnit::SECOND, unit).second;



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