Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-29546

UDF:Failed to compile split code, falling back to original code

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.15.0
    • None
    • Table SQL / Runtime
    • None

    Description

      2022-10-08 19:05:23 GroupWindowAggregate[11] (1/1)#0 WARN  org.apache.flink.table.runtime.generated.GeneratedClass -Failed to compile split code, falling back to original code
      org.apache.flink.util.FlinkRuntimeException: org.apache.flink.api.common.InvalidProgramException: Table program cannot be compiled. This is a bug. Please file an issue.
          at org.apache.flink.table.runtime.generated.CompileUtils.compile(CompileUtils.java:94)
          at org.apache.flink.table.runtime.generated.GeneratedClass.compile(GeneratedClass.java:97)
          at org.apache.flink.table.runtime.generated.GeneratedClass.newInstance(GeneratedClass.java:68)
          at org.apache.flink.table.runtime.operators.window.AggregateWindowOperator.compileGeneratedCode(AggregateWindowOperator.java:148)
          at org.apache.flink.table.runtime.operators.window.WindowOperator.open(WindowOperator.java:274)
          at org.apache.flink.table.runtime.operators.window.AggregateWindowOperator.open(AggregateWindowOperator.java:139)
          at org.apache.flink.streaming.runtime.tasks.RegularOperatorChain.initializeStateAndOpenOperators(RegularOperatorChain.java:107)
          at org.apache.flink.streaming.runtime.tasks.StreamTask.restoreGates(StreamTask.java:700)
          at org.apache.flink.streaming.runtime.tasks.StreamTaskActionExecutor$1.call(StreamTaskActionExecutor.java:55)
          at org.apache.flink.streaming.runtime.tasks.StreamTask.restoreInternal(StreamTask.java:676)
          at org.apache.flink.streaming.runtime.tasks.StreamTask.restore(StreamTask.java:643)
          at org.apache.flink.runtime.taskmanager.Task.runWithSystemExitMonitoring(Task.java:948)
          at org.apache.flink.runtime.taskmanager.Task.restoreAndInvoke(Task.java:917)
          at org.apache.flink.runtime.taskmanager.Task.doRun(Task.java:741)
          at org.apache.flink.runtime.taskmanager.Task.run(Task.java:563)
          at java.lang.Thread.run(Thread.java:748)
      Caused by: org.apache.flink.shaded.guava30.com.google.common.util.concurrent.UncheckedExecutionException: org.apache.flink.api.common.InvalidProgramException: Table program cannot be compiled. This is a bug. Please file an issue.
          at org.apache.flink.shaded.guava30.com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2051)
          at org.apache.flink.shaded.guava30.com.google.common.cache.LocalCache.get(LocalCache.java:3962)
          at org.apache.flink.shaded.guava30.com.google.common.cache.LocalCache$LocalManualCache.get(LocalCache.java:4859)
          at org.apache.flink.table.runtime.generated.CompileUtils.compile(CompileUtils.java:92)
          ... 15 common frames omitted
      Caused by: org.apache.flink.api.common.InvalidProgramException: Table program cannot be compiled. This is a bug. Please file an issue.
          at org.apache.flink.table.runtime.generated.CompileUtils.doCompile(CompileUtils.java:107)
          at org.apache.flink.table.runtime.generated.CompileUtils.lambda$compile$0(CompileUtils.java:92)
          at org.apache.flink.shaded.guava30.com.google.common.cache.LocalCache$LocalManualCache$1.load(LocalCache.java:4864)
          at org.apache.flink.shaded.guava30.com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3529)
          at org.apache.flink.shaded.guava30.com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2278)
          at org.apache.flink.shaded.guava30.com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2155)
          at org.apache.flink.shaded.guava30.com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2045)
          ... 18 common frames omitted
      Caused by: org.codehaus.commons.compiler.CompileException: Line 17, Column 28: Cannot determine simple type name "org"
          at org.codehaus.janino.UnitCompiler.compileError(UnitCompiler.java:12211)
          at org.codehaus.janino.UnitCompiler.getReferenceType(UnitCompiler.java:6833)
          at org.codehaus.janino.UnitCompiler.getReferenceType(UnitCompiler.java:6594)
          at org.codehaus.janino.UnitCompiler.getReferenceType(UnitCompiler.java:6607)
          at org.codehaus.janino.UnitCompiler.getReferenceType(UnitCompiler.java:6607)
          at org.codehaus.janino.UnitCompiler.getReferenceType(UnitCompiler.java:6607)
          at org.codehaus.janino.UnitCompiler.getReferenceType(UnitCompiler.java:6607)
          at org.codehaus.janino.UnitCompiler.getReferenceType(UnitCompiler.java:6607)
          at org.codehaus.janino.UnitCompiler.getReferenceType(UnitCompiler.java:6607)
          at org.codehaus.janino.UnitCompiler.getType2(UnitCompiler.java:6573)
          at org.codehaus.janino.UnitCompiler.access$13900(UnitCompiler.java:215)
          at org.codehaus.janino.UnitCompiler$22$1.visitReferenceType(UnitCompiler.java:6481)
          at org.codehaus.janino.UnitCompiler$22$1.visitReferenceType(UnitCompiler.java:6476)
          at org.codehaus.janino.Java$ReferenceType.accept(Java.java:3928)
          at org.codehaus.janino.UnitCompiler$22.visitType(UnitCompiler.java:6476)
          at org.codehaus.janino.UnitCompiler$22.visitType(UnitCompiler.java:6469)
          at org.codehaus.janino.Java$ReferenceType.accept(Java.java:3927)
          at org.codehaus.janino.UnitCompiler.getType(UnitCompiler.java:6469)
          at org.codehaus.janino.UnitCompiler.access$1300(UnitCompiler.java:215)
          at org.codehaus.janino.UnitCompiler$25.getType(UnitCompiler.java:8271)
          at org.codehaus.janino.UnitCompiler.getType2(UnitCompiler.java:6873)
          at org.codehaus.janino.UnitCompiler.access$14400(UnitCompiler.java:215)
          at org.codehaus.janino.UnitCompiler$22$2$1.visitFieldAccess(UnitCompiler.java:6499)
          at org.codehaus.janino.UnitCompiler$22$2$1.visitFieldAccess(UnitCompiler.java:6494)
          at org.codehaus.janino.Java$FieldAccess.accept(Java.java:4310)
          at org.codehaus.janino.UnitCompiler$22$2.visitLvalue(UnitCompiler.java:6494)
          at org.codehaus.janino.UnitCompiler$22$2.visitLvalue(UnitCompiler.java:6490)
          at org.codehaus.janino.Java$Lvalue.accept(Java.java:4148)
          at org.codehaus.janino.UnitCompiler$22.visitRvalue(UnitCompiler.java:6490)
          at org.codehaus.janino.UnitCompiler$22.visitRvalue(UnitCompiler.java:6469)
          at org.codehaus.janino.Java$Rvalue.accept(Java.java:4116)
          at org.codehaus.janino.UnitCompiler.getType(UnitCompiler.java:6469)
          at org.codehaus.janino.UnitCompiler.getType2(UnitCompiler.java:6855)
          at org.codehaus.janino.UnitCompiler.access$14200(UnitCompiler.java:215)
          at org.codehaus.janino.UnitCompiler$22$2$1.visitAmbiguousName(UnitCompiler.java:6497)
          at org.codehaus.janino.UnitCompiler$22$2$1.visitAmbiguousName(UnitCompiler.java:6494)
          at org.codehaus.janino.Java$AmbiguousName.accept(Java.java:4224)
          at org.codehaus.janino.UnitCompiler$22$2.visitLvalue(UnitCompiler.java:6494)
          at org.codehaus.janino.UnitCompiler$22$2.visitLvalue(UnitCompiler.java:6490)
          at org.codehaus.janino.Java$Lvalue.accept(Java.java:4148)
          at org.codehaus.janino.UnitCompiler$22.visitRvalue(UnitCompiler.java:6490)
          at org.codehaus.janino.UnitCompiler$22.visitRvalue(UnitCompiler.java:6469)
          at org.codehaus.janino.Java$Rvalue.accept(Java.java:4116)
          at org.codehaus.janino.UnitCompiler.getType(UnitCompiler.java:6469)
          at org.codehaus.janino.UnitCompiler.findIMethod(UnitCompiler.java:9026)
          at org.codehaus.janino.UnitCompiler.compileGet2(UnitCompiler.java:5062)
          at org.codehaus.janino.UnitCompiler.access$9100(UnitCompiler.java:215)
          at org.codehaus.janino.UnitCompiler$16.visitMethodInvocation(UnitCompiler.java:4423)
          at org.codehaus.janino.UnitCompiler$16.visitMethodInvocation(UnitCompiler.java:4396)
          at org.codehaus.janino.Java$MethodInvocation.accept(Java.java:5073)
          at org.codehaus.janino.UnitCompiler.compileGet(UnitCompiler.java:4396)
          at org.codehaus.janino.UnitCompiler.compileGetValue(UnitCompiler.java:5662)
          at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java:3783)
          at org.codehaus.janino.UnitCompiler.access$5900(UnitCompiler.java:215)
          at org.codehaus.janino.UnitCompiler$13.visitMethodInvocation(UnitCompiler.java:3762)
          at org.codehaus.janino.UnitCompiler$13.visitMethodInvocation(UnitCompiler.java:3734)
          at org.codehaus.janino.Java$MethodInvocation.accept(Java.java:5073)
          at org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java:3734)
          at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java:2360)
          at org.codehaus.janino.UnitCompiler.access$1800(UnitCompiler.java:215)
          at org.codehaus.janino.UnitCompiler$6.visitExpressionStatement(UnitCompiler.java:1494)
          at org.codehaus.janino.UnitCompiler$6.visitExpressionStatement(UnitCompiler.java:1487)
          at org.codehaus.janino.Java$ExpressionStatement.accept(Java.java:2874)
          at org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java:1487)
          at org.codehaus.janino.UnitCompiler.compileStatements(UnitCompiler.java:1567)
          at org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java:3388)
          at org.codehaus.janino.UnitCompiler.compileDeclaredMethods(UnitCompiler.java:1357)
          at org.codehaus.janino.UnitCompiler.compileDeclaredMethods(UnitCompiler.java:1330)
          at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java:822)
          at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java:432)
          at org.codehaus.janino.UnitCompiler.access$400(UnitCompiler.java:215)
          at org.codehaus.janino.UnitCompiler$2.visitPackageMemberClassDeclaration(UnitCompiler.java:411)
          at org.codehaus.janino.UnitCompiler$2.visitPackageMemberClassDeclaration(UnitCompiler.java:406)
          at org.codehaus.janino.Java$PackageMemberClassDeclaration.accept(Java.java:1414)
          at org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java:406)
          at org.codehaus.janino.UnitCompiler.compileUnit(UnitCompiler.java:378)
          at org.codehaus.janino.SimpleCompiler.cook(SimpleCompiler.java:237)
          at org.codehaus.janino.SimpleCompiler.compileToClassLoader(SimpleCompiler.java:465)
          at org.codehaus.janino.SimpleCompiler.cook(SimpleCompiler.java:216)
          at org.codehaus.janino.SimpleCompiler.cook(SimpleCompiler.java:207)
          at org.codehaus.commons.compiler.Cookable.cook(Cookable.java:80)
          at org.codehaus.commons.compiler.Cookable.cook(Cookable.java:75)
          at org.apache.flink.table.runtime.generated.CompileUtils.doCompile(CompileUtils.java:104)
          ... 24 common frames omitted

      Attachments

        Activity

          People

            Unassigned Unassigned
            WangHui Hui Wang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: