Github user huawei-flink commented on a diff in the pull request:

    https://github.com/apache/flink/pull/3547#discussion_r106361152
  
    --- Diff: 
flink-libraries/flink-table/src/main/scala/org/apache/flink/table/runtime/aggregate/AggregateUtil.scala
 ---
    @@ -19,33 +19,124 @@ package org.apache.flink.table.runtime.aggregate
     
     import java.util
     
    -import org.apache.calcite.rel.`type`._
    +import scala.collection.JavaConversions.asScalaBuffer
    +import scala.collection.mutable.ArrayBuffer
    +
    +import org.apache.calcite.rel.RelNode
    +import org.apache.calcite.rel.`type`.RelDataType
     import org.apache.calcite.rel.core.AggregateCall
    +import org.apache.calcite.rex.RexInputRef
    +import org.apache.calcite.rex.RexLiteral
    +import org.apache.calcite.rex.RexWindowBound
    +import org.apache.calcite.sql.SqlAggFunction
    +import org.apache.calcite.sql.SqlKind
     import org.apache.calcite.sql.`type`.SqlTypeName
    -import org.apache.calcite.sql.`type`.SqlTypeName._
    -import org.apache.calcite.sql.fun._
    -import org.apache.calcite.sql.{SqlAggFunction, SqlKind}
    -import org.apache.flink.streaming.api.functions.ProcessFunction
    +import org.apache.calcite.sql.`type`.SqlTypeName.BIGINT
    +import org.apache.calcite.sql.`type`.SqlTypeName.BOOLEAN
    +import org.apache.calcite.sql.`type`.SqlTypeName.DECIMAL
    +import org.apache.calcite.sql.`type`.SqlTypeName.DOUBLE
    +import org.apache.calcite.sql.`type`.SqlTypeName.FLOAT
    +import org.apache.calcite.sql.`type`.SqlTypeName.INTEGER
    +import org.apache.calcite.sql.`type`.SqlTypeName.SMALLINT
    +import org.apache.calcite.sql.`type`.SqlTypeName.TINYINT
    --- End diff --
    
    I see your point, although I thought that wildcard import was not a best 
practice. It seems that the java and scala implementation are following 
different conventions. I have no problems with it in principle.


---
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