Hello!

I am new to the Arrow C++ compute engine and trying to figure out this time
zone conversion and time extraction:

t.dt.tz_convert('America/New_York').dt.time == datetime.time(11, 30, 0)

So I started looking at:
https://github.com/apache/arrow/blob/master/cpp/src/arrow/compute/kernels/scalar_temporal_unary.cc

and found these these functions seem relevant:
assume_timezone
hour
minute

So my thinking is trying to figure out a way to build plan that basically
does these steps:
(1) Assume timezone to New_York (input data is UTC)
(2) Extract hour value
(3) Extract minute value
(4) Filter on hour and minute value

 I wonder what is a good way to map these functions in
scalar_temporal_unary to an ExecPlan? (Looked under
https://github.com/apache/arrow/tree/master/cpp/src/arrow/compute/exec but
didn't see anything obvious)

Thanks!
Li

Reply via email to