| 894 | } |
| 895 | |
| 896 | ExtensionIdRegistry::ArrowToSubstraitCall EncodeBasic(Id substrait_fn_id) { |
| 897 | return |
| 898 | [substrait_fn_id](const compute::Expression::Call& call) -> Result<SubstraitCall> { |
| 899 | // nullable=true errs on the side of caution |
| 900 | SubstraitCall substrait_call(substrait_fn_id, call.type.GetSharedPtr(), |
| 901 | /*nullable=*/true); |
| 902 | for (std::size_t i = 0; i < call.arguments.size(); i++) { |
| 903 | substrait_call.SetValueArg(static_cast<int>(i), call.arguments[i]); |
| 904 | } |
| 905 | return substrait_call; |
| 906 | }; |
| 907 | } |
| 908 | |
| 909 | ExtensionIdRegistry::ArrowToSubstraitCall EncodeIsNull(Id substrait_fn_id) { |
| 910 | return |
no test coverage detected