vibhatha commented on code in PR #14024: URL: https://github.com/apache/arrow/pull/14024#discussion_r962049345
########## cpp/src/arrow/engine/substrait/util.cc: ########## @@ -107,19 +111,39 @@ class SubstraitExecutor { bool plan_started_; compute::ExecContext exec_context_; std::shared_ptr<SubstraitSinkConsumer> sink_consumer_; + const ConversionOptions& conversion_options_; }; } // namespace Result<std::shared_ptr<RecordBatchReader>> ExecuteSerializedPlan( - const Buffer& substrait_buffer, const ExtensionIdRegistry* extid_registry, - compute::FunctionRegistry* func_registry) { + const Buffer& substrait_buffer, const PythonTableProvider& table_provider, + const ExtensionIdRegistry* registry, compute::FunctionRegistry* func_registry) { // TODO(ARROW-15732) + // retrieve input table from table provider + ConversionOptions conversion_options; + if (table_provider) { + NamedTableProvider named_table_provider = + [table_provider]( + const std::vector<std::string>& names) -> Result<compute::Declaration> { + if (names.empty()) { + return Status::Invalid("names for NamedTable not provided"); + } Review Comment: Yeah that make sense. -- 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: github-unsubscr...@arrow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org