Github user fhueske commented on the pull request:

    https://github.com/apache/flink/pull/1746#issuecomment-191689616
  
    Hi @ChengXiangLi, you need copy this code snippet from 
`DataSetGroupReduce.translateToPlan()` to `DataSetMap.translateToPlan()` to 
enforce `Row` as input type:
    
    ```
        expectedType match {
          case Some(typeInfo) if typeInfo.getTypeClass != classOf[Row] =>
             throw new PlanGenException("GroupReduce operations currently only 
support returning Rows.")
           case _ => // ok
         }
     
         val inputDS = input.asInstanceOf[DataSetRel].translateToPlan(
           config,
           // tell the input operator that this operator currently only 
supports Rows as input
           Some(TypeConverter.DEFAULT_ROW_TYPE))
    ```


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