paleolimbot opened a new pull request, #12836:
URL: https://github.com/apache/arrow/pull/12836

   Revised from #12828 with proper JIRA and unit test!
   
   Reprex (after the change in this PR...before this change it segfaults):
   
   ``` r
   arrow:::do_exec_plan_substrait('
   {
     "extensionUris": [
       {
         "extensionUriAnchor": 1
       }
     ],
     "extensions": [
       {
         "extensionFunction": {
           "extensionUriReference": 1,
           "functionAnchor": 2,
           "name": "abs_checked"
         }
       }
     ],
     "relations": [
       {
         "rel": {
           "project": {
             "input": {
               "read": {
                 "baseSchema": {
                   "names": [
                     "letter",
                     "number"
                   ],
                   "struct": {
                     "types": [
                       {
                         "string": {
   
                         }
                       },
                       {
                         "i32": {
   
                         }
                       }
                     ]
                   }
                 },
                 "namedTable": {
                   "names": [
                     "named_table_1"
                   ]
                 }
               }
             },
             "expressions": [
               {
                 "scalarFunction": {
                   "functionReference": 2,
                   "args": [
                     {
                       "selection": {
                         "directReference": {
                           "structField": {
                             "field": 1
                           }
                         }
                       }
                     }
                   ],
                   "outputType": {
   
                   }
                 }
               }
             ]
           }
         }
       }
     ]
   }
   ')
   #> Error: Invalid: Uri  was referenced by an extension but was not declared 
in the ExtensionSet.
   #> 
/Users/deweydunnington/Desktop/rscratch/arrow/cpp/src/arrow/engine/substrait/extension_set.cc:161
  set.impl_->CheckHasUri(function_ids[i].uri)
   #> 
/Users/deweydunnington/Desktop/rscratch/arrow/cpp/src/arrow/engine/substrait/serde.cc:66
  GetExtensionSetFromPlan(plan)
   ```
   


-- 
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]

Reply via email to