Class FilterOperand.Predicate

    • Constructor Detail

      • Predicate

        public Predicate​(List<RexExpression> operands,
                         DataSchema dataSchema,
                         IntPredicate comparisonResultPredicate)
        Predicate constructor also resolve data type, since we don't have an exhausted list of filter function signatures. we rely on type casting.
        • if both RHS and LHS has null data type, exception occurs.
        • if either side is null or OBJECT, we best-effort cast data into the other side's data type.
        • if either side supertype of the other, we use the super type.
        • if we can't resolve a common data type, exception occurs.