[ 
https://issues.apache.org/jira/browse/FLINK-8274?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16380924#comment-16380924
 ] 

ASF GitHub Bot commented on FLINK-8274:
---------------------------------------

Github user walterddr commented on a diff in the pull request:

    https://github.com/apache/flink/pull/5174#discussion_r171360773
  
    --- Diff: 
flink-libraries/flink-table/src/test/scala/org/apache/flink/table/runtime/stream/table/CalcWithSplitCodeGenITCase.scala
 ---
    @@ -0,0 +1,385 @@
    +/*
    + * Licensed to the Apache Software Foundation (ASF) under one
    + * or more contributor license agreements.  See the NOTICE file
    + * distributed with this work for additional information
    + * regarding copyright ownership.  The ASF licenses this file
    + * to you under the Apache License, Version 2.0 (the
    + * "License"); you may not use this file except in compliance
    + * with the License.  You may obtain a copy of the License at
    + *
    + *     http://www.apache.org/licenses/LICENSE-2.0
    + *
    + * Unless required by applicable law or agreed to in writing, software
    + * distributed under the License is distributed on an "AS IS" BASIS,
    + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    + * See the License for the specific language governing permissions and
    + * limitations under the License.
    + */
    +
    +package org.apache.flink.table.runtime.stream.table
    +
    +import org.apache.flink.api.scala._
    +import org.apache.flink.streaming.api.scala.StreamExecutionEnvironment
    +import org.apache.flink.streaming.util.StreamingMultipleProgramsTestBase
    +import org.apache.flink.table.api.scala._
    +import org.apache.flink.table.api.{TableConfig, TableEnvironment}
    +import org.apache.flink.table.expressions.Literal
    +import org.apache.flink.table.expressions.utils.{Func13, RichFunc1, 
RichFunc2}
    +import org.apache.flink.table.runtime.utils.{StreamITCase, StreamTestData, 
UserDefinedFunctionTestUtils}
    +import org.apache.flink.types.Row
    +import org.junit.Assert.assertEquals
    +import org.junit.Test
    +
    +import scala.collection.mutable
    +
    +/**
    +  * set TableConfig's MaxGeneratedCodeLength to 1
    +  * make sure every expression is in an independent function call
    +  */
    +class CalcWithSplitCodeGenITCase extends StreamingMultipleProgramsTestBase 
{
    --- End diff --
    
    I see you probably copied all tests in `CalcITCase` only to add the 
configuration for the max codegen length to 1. Why not try using something 
similar to `TableProgramsTestBase` to add two unique test configs? 


> Fix Java 64K method compiling limitation for CommonCalc
> -------------------------------------------------------
>
>                 Key: FLINK-8274
>                 URL: https://issues.apache.org/jira/browse/FLINK-8274
>             Project: Flink
>          Issue Type: Bug
>          Components: Table API & SQL
>    Affects Versions: 1.5.0
>            Reporter: Ruidong Li
>            Assignee: Ruidong Li
>            Priority: Critical
>
> For complex SQL Queries, the generated code for {code}DataStreamCalc{code}, 
> {code}DataSetCalc{code} may exceed Java's method length limitation 64kb.
>  
> This issue will split long method to several sub method calls.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to