| 907 | } |
| 908 | |
| 909 | ExtensionIdRegistry::ArrowToSubstraitCall EncodeIsNull(Id substrait_fn_id) { |
| 910 | return |
| 911 | [substrait_fn_id](const compute::Expression::Call& call) -> Result<SubstraitCall> { |
| 912 | if (call.options != nullptr) { |
| 913 | auto null_opts = checked_pointer_cast<compute::NullOptions>(call.options); |
| 914 | if (null_opts->nan_is_null) { |
| 915 | return Status::Invalid( |
| 916 | "Substrait does not support is_null with nan_is_null=true. You can use " |
| 917 | "is_null || is_nan instead"); |
| 918 | } |
| 919 | } |
| 920 | SubstraitCall substrait_call(substrait_fn_id, call.type.GetSharedPtr(), |
| 921 | /*nullable=*/false); |
| 922 | for (std::size_t i = 0; i < call.arguments.size(); i++) { |
| 923 | substrait_call.SetValueArg(static_cast<int>(i), call.arguments[i]); |
| 924 | } |
| 925 | return substrait_call; |
| 926 | }; |
| 927 | } |
| 928 | |
| 929 | ExtensionIdRegistry::SubstraitCallToArrow DecodeOptionlessBasicMapping( |
| 930 | const std::string& function_name, int max_args) { |
no test coverage detected