[ https://issues.apache.org/jira/browse/FLINK-35334?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17897502#comment-17897502 ]
Xinglong Wang commented on FLINK-35334: --------------------------------------- [~simonlee1206] I try to fix it. Can you use this pr in your job? Is it work? > Code generation: init method exceeds 64 KB when there is a long array field > with Table API > ------------------------------------------------------------------------------------------ > > Key: FLINK-35334 > URL: https://issues.apache.org/jira/browse/FLINK-35334 > Project: Flink > Issue Type: Bug > Components: Table SQL / API, Table SQL / Runtime > Affects Versions: 1.17.1, 1.19.0, 1.18.1 > Reporter: Simon Lee > Priority: Blocker > Labels: pull-request-available > > Hi team, > I encountered the following error when trying to execute SQL on a table that > has rows with fields that are long arrays (e.g., array length > 200): > {code:java} > Caused by: java.lang.RuntimeException: Could not instantiate generated class > 'BatchExecCalc$4950' > at > org.apache.flink.table.runtime.generated.GeneratedClass.newInstance(GeneratedClass.java:84) > ... > Caused by: org.codehaus.janino.InternalCompilerException: Code of method > "<init>([Ljava/lang/Object;Lorg/apache/flink/streaming/runtime/tasks/StreamTask;Lorg/apache/flink/streaming/api/graph/StreamConfig;Lorg/apache/flink/streaming/api/operators/Output;Lorg/apache/flink/streaming/runtime/tasks/ProcessingTimeService;)V" > of class "BatchExecCalc$4950" grows beyond 64 KB {code} > A minimal example that reproduces the situation described above: > [https://gist.github.com/nlpersimon/df71c0bec93c13667965ce1706099fdb] > After running the example with Intellij, I got this output: > [https://gist.github.com/nlpersimon/f741b79c37da7426aeefc7a157cdd124] > Please let me know if you need any other information. Thank you! -- This message was sent by Atlassian Jira (v8.20.10#820010)