From 23b194b3fe3eb9ca9e3031396bd72b0bf36e0340 Mon Sep 17 00:00:00 2001 From: Matt Topol Date: Mon, 28 Oct 2024 11:45:45 -0400 Subject: [PATCH] add function doc for 'not' --- arrow/compute/scalar_bool.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/arrow/compute/scalar_bool.go b/arrow/compute/scalar_bool.go index d01675d9..9a64382a 100644 --- a/arrow/compute/scalar_bool.go +++ b/arrow/compute/scalar_bool.go @@ -93,6 +93,11 @@ var ( For a different null behavior, see function "and".`, ArgNames: []string{"x", "y"}, } + notDoc = FunctionDoc{ + Summary: "Logical 'not' boolean values", + Description: "Negates the input boolean value", + ArgNames: []string{"x"}, + } ) func makeFunction(reg FunctionRegistry, name string, arity int, ex exec.ArrayKernelExec, doc FunctionDoc, nulls exec.NullHandling) { @@ -130,6 +135,6 @@ func RegisterScalarBoolean(reg FunctionRegistry) { andNotKleeneDoc, exec.NullComputedPrealloc) makeFunction(reg, "or_kleene", 2, kernels.SimpleBinary[kernels.KleeneOrOpKernel], orKleeneDoc, exec.NullComputedPrealloc) - makeFunction(reg, "not", 1, kernels.NotExecKernel, EmptyFuncDoc, + makeFunction(reg, "not", 1, kernels.NotExecKernel, notDoc, exec.NullComputedNoPrealloc) }