R-JunmingChen commented on issue #35268: URL: https://github.com/apache/arrow/issues/35268#issuecomment-1602034985
> Yes, I think that would solve your problem. For example, is this similar to how the `file_parquet.cc` file uses `parquet::arrow::FileReader::GetRecordBatchGenerator`? Yes, it's similar. I am closing to finish the first draft for this issue and I confront another problem may need your guidance. How can I compare two values from two arrays in the run time in an Acero node. To be specific, I can use the following codes to compare: `a_array->data()->GetValues<CType>(a_indice) > b_array->data()-><Ctype>GetValues(b_indice)`. To make this code work, the CType need to be known in the compile time. However, it looks like I can only get the CType in run time for an Array from the input of an Acero node. I know, the current solution in `arrow::compute` materializes all the `arrow::DataType` for a compute kernel and register them to a Function. So, in the run time, I can use Function to handle data in all the `arrow::DataType`. To solve my problem, do I need to create a Function and register corresponding kernels for comparison? Thanks -- 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]
