@@ -31,7 +31,6 @@ import org.apache.flink.table.runtime.functions.{SqlDateTimeUtils, SqlFunctionUt
31
31
import org .apache .flink .table .runtime .types .LogicalTypeDataTypeConverter .fromLogicalTypeToDataType
32
32
import org .apache .flink .table .runtime .types .PlannerTypeUtils
33
33
import org .apache .flink .table .runtime .types .PlannerTypeUtils .{isInteroperable , isPrimitive }
34
- import org .apache .flink .table .runtime .typeutils .TypeCheckUtils
35
34
import org .apache .flink .table .runtime .typeutils .TypeCheckUtils ._
36
35
import org .apache .flink .table .types .logical .LogicalTypeFamily .DATETIME
37
36
import org .apache .flink .table .types .logical .LogicalTypeRoot ._
@@ -996,7 +995,7 @@ object ScalarOperatorGens {
996
995
operand.copy(resultType = targetType)
997
996
998
997
// Date/Time/Timestamp -> String
999
- case (_, VARCHAR | CHAR ) if TypeCheckUtils . isTimePoint(operand.resultType) =>
998
+ case (_, VARCHAR | CHAR ) if isTimePoint(operand.resultType) =>
1000
999
generateStringResultCallIfArgsNotNull(ctx, Seq (operand), targetType) {
1001
1000
operandTerm =>
1002
1001
s " ${localTimeToStringCode(ctx, operand.resultType, operandTerm.head)}"
@@ -1085,7 +1084,7 @@ object ScalarOperatorGens {
1085
1084
1086
1085
// String -> NUMERIC TYPE (not Character)
1087
1086
case (VARCHAR | CHAR , _)
1088
- if TypeCheckUtils . isNumeric(targetType) =>
1087
+ if isNumeric(targetType) =>
1089
1088
targetType match {
1090
1089
case dt : DecimalType =>
1091
1090
generateUnaryOperatorIfNotNull(ctx, targetType, operand) { operandTerm =>
@@ -1180,7 +1179,7 @@ object ScalarOperatorGens {
1180
1179
}
1181
1180
1182
1181
// Boolean -> NUMERIC TYPE
1183
- case (BOOLEAN , _) if TypeCheckUtils . isNumeric(targetType) =>
1182
+ case (BOOLEAN , _) if isNumeric(targetType) =>
1184
1183
val targetTypeTerm = primitiveTypeTermForType(targetType)
1185
1184
generateUnaryOperatorIfNotNull(ctx, targetType, operand) {
1186
1185
operandTerm => s " ( $targetTypeTerm) ( $operandTerm ? 1 : 0) "
@@ -1792,7 +1791,7 @@ object ScalarOperatorGens {
1792
1791
val resultTypeTerm = boxedTypeTermForType(widerType.get)
1793
1792
1794
1793
def castIfNumeric (t : GeneratedExpression ): String = {
1795
- if (TypeCheckUtils . isNumeric(widerType.get)) {
1794
+ if (isNumeric(widerType.get)) {
1796
1795
s " ${numericCasting(t.resultType, widerType.get).apply(t.resultTerm)}"
1797
1796
} else {
1798
1797
s " ${t.resultTerm}"
0 commit comments