thisisnic opened a new issue, #34365: URL: https://github.com/apache/arrow/issues/34365
### Describe the bug, including details regarding any error messages, version, and platform. The Substrait cast function has an `input` argument which takes an `Expression`; however, the current implementation only work with Expressions which are Field References and not any other types, i.e. the following plan does not run (see https://github.com/ibis-project/ibis-substrait/pull/414) ``` { "extensionUris": [ { "extensionUriAnchor": 1 } ], "extensions": [ { "extensionFunction": { "extensionUriReference": 1, "functionAnchor": 1, "name": "floor" } } ], "relations": [ { "root": { "input": { "project": { "common": { "emit": { "outputMapping": [ 1 ] } }, "input": { "read": { "common": { "direct": {} }, "baseSchema": { "names": [ "a" ], "struct": { "types": [ { "fp64": { "nullability": "NULLABILITY_NULLABLE" } } ], "nullability": "NULLABILITY_REQUIRED" } }, "namedTable": { "names": [ "table0" ] } } }, "expressions": [ { "cast": { "type": { "i64": { "nullability": "NULLABILITY_NULLABLE" } }, "input": { "scalarFunction": { "functionReference": 1, "outputType": { "i64": { "nullability": "NULLABILITY_NULLABLE" } } } } } } ] } }, "names": [ "a" ] } } ] } ``` ### Component(s) C++ -- 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]
