bkmgit commented on pull request #11882:
URL: https://github.com/apache/arrow/pull/11882#issuecomment-1020947191


   Comparisons of the form:
   ```
     ValidateBetween(Datum(std::make_shared<ScalarType>("zzz")),
         Datum(ArrayFromJSON(TypeTraits<StringType>::type_singleton(), "[]")),
         Datum(ArrayFromJSON(TypeTraits<StringType>::type_singleton(), 
"[null]")));
   ```
   and
   ```
   ValidateCompare<TypeParam>(eq, "[null]", "[]", "[]");
   ```
   fail with `failed with Invalid: Array arguments must all be the same length` 
from   
[exec.cc](https://github.com/apache/arrow/blob/master/cpp/src/arrow/compute/exec.cc#L265),
 while comparisons of the form   
   ```
     ValidateBetween(Datum(std::make_shared<ScalarType>("zzz")),
         Datum(ArrayFromJSON(TypeTraits<StringType>::type_singleton(), "[]")),
         Datum(ArrayFromJSON(TypeTraits<StringType>::type_singleton(), "[]")));
   ```
   and
   ```
     ValidateBetween(Datum(std::make_shared<ScalarType>("zzz")),
         Datum(ArrayFromJSON(TypeTraits<StringType>::type_singleton(), 
"[null]")),
         Datum(ArrayFromJSON(TypeTraits<StringType>::type_singleton(), 
"[null]")));
   ```
   are valid. Is this the behavior that is desired? Would expect comparing null 
with empty to give empty for scalar comparisons.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to