MCPcopy Create free account
hub / github.com/apache/arrow / EncodeIsNull

Function EncodeIsNull

cpp/src/arrow/engine/substrait/extension_set.cc:909–927  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

907}
908
909ExtensionIdRegistry::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
929ExtensionIdRegistry::SubstraitCallToArrow DecodeOptionlessBasicMapping(
930 const std::string& function_name, int max_args) {

Callers 1

Calls 3

SetValueArgMethod · 0.80
InvalidFunction · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected