Aha thanks both! I ended up using the Acero example to do it.

On Thu, Aug 17, 2023 at 5:45 PM Antoine Pitrou <anto...@python.org> wrote:

>
> Or you can simply call the "sort_indices" compute function:
> https://arrow.apache.org/docs/cpp/compute.html#sorts-and-partitions
>
>
> Le 17/08/2023 à 23:20, Ian Cook a écrit :
> > Li,
> >
> > Here's a standalone C++ example that constructs a Table and executes
> > an Acero ExecPlan to sort it:
> > https://gist.github.com/ianmcook/2aa9aa82e61c3ea4405450b93cf80fbc
> >
> > Ian
> >
> > On Thu, Aug 17, 2023 at 4:50 PM Li Jin <ice.xell...@gmail.com> wrote:
> >>
> >> Hi,
> >>
> >> I am writing some C++ test and found myself in need for an c++ function
> to
> >> sort an arrow Table. Before I go around implementing one myself, I
> wonder
> >> if there is already a function that does that? (I searched the doc but
> >> didn’t find one).
> >>
> >> There is function in Acero can do it but I didn’t find a super easy way
> to
> >> wrap a Table as An Acero source node either.
> >>
> >> Appreciate it if someone can give some pointers.
> >>
> >> Thanks,
> >> Li
>

Reply via email to