kou commented on code in PR #43537:
URL: https://github.com/apache/arrow/pull/43537#discussion_r1702919305
##########
python/pyarrow/_flight.pyx:
##########
@@ -736,6 +743,12 @@ cdef class FlightEndpoint(_Weakrefable):
CLocation.Parse(tobytes(location)).Value(&c_location))
self.endpoint.locations.push_back(c_location)
+ if expiration_time is not None:
+ self.endpoint.expiration_time = time_point(
+ microseconds(expiration_time.cast(timestamp("us")).value))
Review Comment:
Can we use `std::chrono::duration_cast<Timestamp::duration>()` like
https://github.com/apache/arrow/blob/1992cc64c74367579fb587f0431bf4340401c38a/cpp/src/arrow/flight/flight_internals_test.cc#L194-L195
with Cython?
--
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]