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

    https://github.com/apache/flink/pull/3743#discussion_r112636652
  
    --- Diff: 
flink-libraries/flink-table/src/main/scala/org/apache/flink/table/plan/logical/operators.scala
 ---
    @@ -54,6 +54,9 @@ case class Project(projectList: Seq[NamedExpression], 
child: LogicalNode) extend
                 case expr if !expr.valid => u
                 case c @ Cast(ne: NamedExpression, tp) => Alias(c, 
s"${ne.name}-$tp")
                 case gcf: GetCompositeField => Alias(gcf, 
gcf.aliasName().getOrElse(s"_c$i"))
    +            case over: OverCall if null != over.aggAlias =>
    --- End diff --
    
    Currently `.select('c, 'b.count over 'w as 'mycount)` would be translated 
into `OverCall(Count(b), w, mycount, _)`. If we remove `as` from `OverCall`, it 
will be wrapped in a regular `Alias` expression: `Alias(OverCall(Count(b), w, 
_), mycount)`.
    
    The syntax would be the same, but the internal representation would use the 
existing `Alias` expression, just like any other expression that is renamed.


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