Based on the results calculated from the left side of the short-circuit operation,
if the proportion of true is less than 0.2 and the current operation is an and,
the RecordBatch will be filtered in advance.
Create a binary expression whose arguments are correctly coerced.
This function errors if it is not possible to coerce the arguments
to computational types supported by the operator.
Casts dictionary array to result type for binary numerical operators. Such operators
between array and scalar produce a dictionary array other than primitive array of the
same operators between array and array. This leads to inconsistent result types causing
errors in the following query execution. For such operators between array and scalar,
we cast the dictionary array to primitive array.