Skip to content

Commit

Permalink
add function doc for 'not'
Browse files Browse the repository at this point in the history
  • Loading branch information
zeroshade committed Oct 28, 2024
1 parent 6a95b48 commit 23b194b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion arrow/compute/scalar_bool.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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)
}

0 comments on commit 23b194b

Please sign in to comment.