Re: How to reconstruct an arrow::Table from an arrow::Buffer object in C++?

2024-08-19 Thread Hung Dang
Hi Kou, Yes, it works. Thanks, Hung On Sun, Aug 18, 2024 at 9:29 PM Sutou Kouhei wrote: > Hi, > > Does this work? > > std::shared_ptr > from_wire_format(std::shared_ptr buffer) { > arrow::io::BufferReader input(std::move(buffer)); > auto reader = > arrow::ipc::RecordBatchStreamReader::Open

Re: How to reconstruct an arrow::Table from an arrow::Buffer object in C++?

2024-08-19 Thread Felipe Oliveira Carvalho
Extra tip: avoid calling ValueOrDie() as that will kill your program in case of errors. Replace auto x = F().ValueOrDie(); with ARROW_ASSIGN_OR_RAISE(auto x, F()) and declare the function to either return an arrow::Status or an arrow::Result. -- Felipe On Mon, Aug 19, 2024 at 10:41 AM Hung Dang

Issue loading IPC data in javascript

2024-08-19 Thread Simon Knight
Hi, I am using the example from https://arrow.apache.org/docs/js/ to load a file from a URL in Chrome const table = await tableFromIPC(fetch("/simple.arrow")); but get uncaught (in promise) Error: Unrecognized type: "undefined" (24) at tk (apache-arrow:287:260) at U.fk [as decode] (apache