Class ComparableTypeStrategy

java.lang.Object
org.apache.flink.table.types.inference.strategies.ComparableTypeStrategy
All Implemented Interfaces:
InputTypeStrategy

@Internal public final class ComparableTypeStrategy extends Object implements InputTypeStrategy
An InputTypeStrategy that checks if all input arguments can be compared with each other with the minimal provided comparison.

It requires at least one argument. In case of one argument, the argument must be comparable with itself (e.g. for aggregations).

For the rules which types are comparable with which types see LogicalTypeChecks.areComparable(LogicalType, LogicalType, StructuredComparison).