Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
1.14.2
-
None
-
None
Description
//代码占位符 tableEnvironment.createTemporaryFunction("ROUNDX", RoundX.class); tableEnvironment.createTemporaryFunction("NVL", Nvl.class); tableEnvironment.executeSql("select ROUNDX( CAST(1.12345 as decimal(10,3)),NVL(MAX(f0),2) ) from t1").print(); // exception Exception in thread "main" java.lang.AssertionError: not a literal: NVL($0, 2) // trace // `NVL` is a scalarFunction that likes oracle nvl function. And this exception might be thrown from this code in my `getTypeInference` function of ROUNDX scalarFunction. Optional<Integer> secondValue = callContext.getArgumentValue(1, Integer.class);