twalthr commented on a change in pull request #9275:
[FLINK-13290][table-planner-blink][hbase] SinkCodeGenerator should not compare
row type field names and enable blink planner for hbase IT case
URL: https://github.com/apache/flink/pull/9275#discussion_r309218752
##########
File path:
flink-table/flink-table-common/src/main/java/org/apache/flink/table/types/logical/utils/LogicalTypeChecks.java
##########
@@ -332,4 +351,162 @@ public Boolean visit(DayTimeIntervalType
dayTimeIntervalType) {
}
}
}
+
+ private static class TypeEquivalenceIgnoreNamesExtractor extends
Extractor<Boolean> {
+
+ private final LogicalType thisType;
+
+ private TypeEquivalenceIgnoreNamesExtractor(LogicalType
thisType) {
+ this.thisType = thisType;
+ }
+
+ /**
+ * Returns true if tow LogicalType can equal. This is the same
with {@link LogicalType#equals(Object)}.
+ */
+ private boolean canEqual(LogicalType thatType) {
+ if (thisType == null || thatType == null) {
Review comment:
same comment as above regarding `null` checking
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services