Skip to content

Commit 1a34a07

Browse files
authored
MINOR: Fix docstrings for kleene boolean scalar funcs (#13907)
It looks like the entries in the truth tables were copy-pasted and the _results_ were updated to match the function, but not the operator. Authored-by: Gil Forsyth <[email protected]> Signed-off-by: Yibo Cai <[email protected]>
1 parent a1c3d57 commit 1a34a07

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

‎cpp/src/arrow/compute/kernels/scalar_boolean.cc‎

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -451,11 +451,11 @@ const FunctionDoc and_kleene_doc{
451451
const FunctionDoc and_not_kleene_doc{
452452
"Logical 'and not' boolean values (Kleene logic)",
453453
("This function behaves as follows with nulls:\n\n"
454-
"- true and null = null\n"
455-
"- null and false = null\n"
456-
"- false and null = false\n"
457-
"- null and true = false\n"
458-
"- null and null = null\n"
454+
"- true and not null = null\n"
455+
"- null and not false = null\n"
456+
"- false and not null = false\n"
457+
"- null and not true = false\n"
458+
"- null and not null = null\n"
459459
"\n"
460460
"In other words, in this context a null value really means \"unknown\",\n"
461461
"and an unknown value 'and not' true is always false, as is false\n"
@@ -467,14 +467,14 @@ const FunctionDoc or_kleene_doc{
467467
"Logical 'or' boolean values (Kleene logic)",
468468
("This function behaves as follows with nulls:\n\n"
469469
"- true or null = true\n"
470-
"- null and true = true\n"
471-
"- false and null = null\n"
472-
"- null and false = null\n"
473-
"- null and null = null\n"
470+
"- null or true = true\n"
471+
"- false or null = null\n"
472+
"- null or false = null\n"
473+
"- null or null = null\n"
474474
"\n"
475475
"In other words, in this context a null value really means \"unknown\",\n"
476476
"and an unknown value 'or' true is always true.\n"
477-
"For a different null behavior, see function \"and\"."),
477+
"For a different null behavior, see function \"or\"."),
478478
{"x", "y"}};
479479

480480
} // namespace

0 commit comments

Comments
 (0)