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

    https://github.com/apache/flink/pull/3520#discussion_r106460094
  
    --- Diff: 
flink-libraries/flink-table/src/test/scala/org/apache/flink/table/plan/util/RexProgramTestBase.scala
 ---
    @@ -16,106 +16,96 @@
      * limitations under the License.
      */
     
    -package org.apache.flink.table.plan.rules.util
    +package org.apache.flink.table.plan.util
     
     import java.math.BigDecimal
    +import java.util
     
     import org.apache.calcite.adapter.java.JavaTypeFactory
     import org.apache.calcite.jdbc.JavaTypeFactoryImpl
     import org.apache.calcite.rel.`type`.{RelDataType, RelDataTypeSystem}
     import org.apache.calcite.rex.{RexBuilder, RexProgram, RexProgramBuilder}
    -import org.apache.calcite.sql.`type`.SqlTypeName.{BIGINT, DOUBLE, INTEGER, 
VARCHAR}
    +import org.apache.calcite.sql.`type`.SqlTypeName.{BIGINT, DOUBLE, INTEGER, 
VARCHAR, BOOLEAN}
     import org.apache.calcite.sql.fun.SqlStdOperatorTable
    -import org.apache.flink.table.plan.rules.util.RexProgramProjectExtractor._
    -import org.junit.Assert.{assertArrayEquals, assertTrue}
    -import org.junit.{Before, Test}
     
     import scala.collection.JavaConverters._
    +import scala.collection.mutable
     
    -/**
    -  * This class is responsible for testing RexProgramProjectExtractor.
    -  */
    -class RexProgramProjectExtractorTest {
    -  private var typeFactory: JavaTypeFactory = _
    -  private var rexBuilder: RexBuilder = _
    -  private var allFieldTypes: Seq[RelDataType] = _
    -  private val allFieldNames = List("name", "id", "amount", "price")
    -
    -  @Before
    -  def setUp(): Unit = {
    -    typeFactory = new JavaTypeFactoryImpl(RelDataTypeSystem.DEFAULT)
    -    rexBuilder = new RexBuilder(typeFactory)
    -    allFieldTypes = List(VARCHAR, BIGINT, INTEGER, 
DOUBLE).map(typeFactory.createSqlType(_))
    -  }
    +abstract class RexProgramTestBase {
    --- End diff --
    
    good idea to make this an abstract class


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to