Skip to content

Commit

Permalink
MINOR: Fix docstrings for kleene boolean scalar funcs (#13907)
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
gforsyth authored Aug 19, 2022
1 parent a1c3d57 commit 1a34a07
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions cpp/src/arrow/compute/kernels/scalar_boolean.cc
Original file line number Diff line number Diff line change
Expand Up @@ -451,11 +451,11 @@ const FunctionDoc and_kleene_doc{
const FunctionDoc and_not_kleene_doc{
"Logical 'and not' boolean values (Kleene logic)",
("This function behaves as follows with nulls:\n\n"
"- true and null = null\n"
"- null and false = null\n"
"- false and null = false\n"
"- null and true = false\n"
"- null and null = null\n"
"- true and not null = null\n"
"- null and not false = null\n"
"- false and not null = false\n"
"- null and not true = false\n"
"- null and not null = null\n"
"\n"
"In other words, in this context a null value really means \"unknown\",\n"
"and an unknown value 'and not' true is always false, as is false\n"
Expand All @@ -467,14 +467,14 @@ const FunctionDoc or_kleene_doc{
"Logical 'or' boolean values (Kleene logic)",
("This function behaves as follows with nulls:\n\n"
"- true or null = true\n"
"- null and true = true\n"
"- false and null = null\n"
"- null and false = null\n"
"- null and null = null\n"
"- null or true = true\n"
"- false or null = null\n"
"- null or false = null\n"
"- null or null = null\n"
"\n"
"In other words, in this context a null value really means \"unknown\",\n"
"and an unknown value 'or' true is always true.\n"
"For a different null behavior, see function \"and\"."),
"For a different null behavior, see function \"or\"."),
{"x", "y"}};

} // namespace
Expand Down

0 comments on commit 1a34a07

Please sign in to comment.