Skip to content

Commit 2eeadb8

Browse files
committed
fix
1 parent b7f839d commit 2eeadb8

File tree

4 files changed

+2
-13
lines changed

4 files changed

+2
-13
lines changed

flink-table/flink-table-common/src/main/java/org/apache/flink/table/functions/ModelTypeUtils.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,8 @@ private static Optional<List<DataType>> inferMLPredictInputTypes(
118118
return Optional.empty();
119119
}
120120

121-
// TODO: validate config map
122-
// Optional<Map> map = callContext.getArgumentValue(3, Map.class);
123-
121+
// Config map validation is done in StreamPhysicalMLPredictTableFunctionRule since
122+
// we are not able to get map literal here.
124123
return Optional.of(callContext.getArgumentDataTypes());
125124
}
126125

flink-table/flink-table-common/src/main/java/org/apache/flink/table/types/inference/SystemTypeInference.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,6 @@ public Optional<List<DataType>> inferInputTypes(
544544
try {
545545
checkTableArgs(staticArgs, callContext);
546546
if (allowSystemArgs) {
547-
// Check that the static arguments are valid
548547
checkUidArg(callContext);
549548
}
550549
} catch (ValidationException e) {

flink-table/flink-table-common/src/test/java/org/apache/flink/table/types/inference/InputTypeStrategiesTestBase.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,6 @@ public abstract class InputTypeStrategiesTestBase {
5858
@ParameterizedTest(name = "{index}: {0}")
5959
@MethodSource("testData")
6060
void testStrategy(TestSpec testSpec) {
61-
/*
62-
if (!testSpec.description.contains("Descriptor column not found in table")
63-
&& !testSpec.description.contains("Descriptor column count")) {
64-
return;
65-
}
66-
*/
6761
if (testSpec.expectedSignature != null) {
6862
assertThat(generateSignature(testSpec)).isEqualTo(testSpec.expectedSignature);
6963
}

flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/QueryOperationConverter.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -344,9 +344,6 @@ public RelNode visit(FunctionQueryOperation functionTable) {
344344
// relBuilder.build() works in LIFO fashion, this restores the original input order
345345
Collections.reverse(inputStack);
346346

347-
// TODO: should we check if contextFunction is builtin ml_predict and use
348-
// SqlPredictFunction instead of BridgingSqlFunction? PTF BridgeSqlFunction will be
349-
// handled by StreamPhysicalProcessTableFunctionRule which won't work for ml_predict
350347
final BridgingSqlFunction sqlFunction =
351348
BridgingSqlFunction.of(relBuilder.getCluster(), contextFunction);
352349

0 commit comments

Comments
 (0)