Re: Sort a Table In C++?
Aha thanks both! I ended up using the Acero example to do it. On Thu, Aug 17, 2023 at 5:45 PM Antoine Pitrou 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 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 >
Re: Sort a Table In C++?
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 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
Re: Sort a Table In C++?
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 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
Sort a Table In C++?
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