Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-17648

[C++] Add ScanOptions to support projection and filter in ToProto Read

    XMLWordPrintableJSON

Details

    Description

      When converting from an Acero plan to a Substrait plan not all scan options are fully supported. The `projection` (partial column selection) and `filter` (pushdown filtering) support needs to be added.

      Ref:

       

      Result<std::unique_ptr<substrait::ReadRel>> ScanRelationConverter(const std::shared_ptr<Schema>& schema, const compute::Declaration& declaration,    ExtensionSet* ext_set, const ConversionOptions& conversion_options) {  
      
      auto read_rel = make_unique<substrait::ReadRel>();
      const auto& scan_node_options = checked_cast<const dataset::ScanNodeOptions&>(*declaration.options);  
      auto dataset = dynamic_cast<dataset::FileSystemDataset*>(scan_node_options.dataset.get()); 
      // TODO handle here

       

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            vibhatha Vibhatha Lakmal Abeykoon
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: