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

    https://github.com/apache/flink/pull/3397#discussion_r104466819
  
    --- Diff: 
flink-libraries/flink-table/src/main/scala/org/apache/flink/table/runtime/aggregate/AggregateUtil.scala
 ---
    @@ -93,6 +94,41 @@ object AggregateUtil {
       }
     
       /**
    +    * Create an [[RichProcessFunction]] to evaluate final aggregate value.
    +    *
    +    * @param namedAggregates List of calls to aggregate functions and 
their output field names
    +    * @param inputType Input row type
    +    * @param outputType Output row type
    +    * @param forwardedFields All the forwarded fields
    +    * @return [[UnboundedProcessingOverProcessFunction]]
    +    */
    +  private[flink] def CreateUnboundedProcessingOverProcessFunction(
    +    namedAggregates: Seq[CalcitePair[AggregateCall, String]],
    +    inputType: RelDataType,
    +    outputType: RelDataType,
    +    forwardedFields: Array[Int]): UnboundedProcessingOverProcessFunction = 
{
    +
    +    val (aggFields, aggregates) =
    +      transformToAggregateFunctions(
    +        namedAggregates.map(_.getKey),
    +        inputType,
    +        forwardedFields.length)
    +
    +    val rowTypeInfo = new RowTypeInfo(outputType.getFieldList
    +      .map(field => FlinkTypeFactory.toTypeInfo(field.getType)): _*)
    +
    +    val intermediateRowType: RowTypeInfo =
    +      createDataSetAggregateBufferDataType(forwardedFields, aggregates, 
inputType)
    --- End diff --
    
    We would need to add this dependency to the flink-table pom.xml
    ```
    <dependency>
      <groupId>org.apache.flink</groupId>
      <artifactId>flink-statebackend-rocksdb_2.10</artifactId>
      <version>${project.version}</version>
      <scope>test</scope>
    </dependency>
    ```


---
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 [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to