flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From twalthr <...@git.apache.org>
Subject [GitHub] flink pull request #4078: [FLINK-6693] [table] Support DATE_FORMAT function ...
Date Fri, 23 Jun 2017 10:28:26 GMT
Github user twalthr commented on a diff in the pull request:

    https://github.com/apache/flink/pull/4078#discussion_r123718414
  
    --- Diff: flink-libraries/flink-table/src/main/scala/org/apache/flink/table/expressions/time.scala
---
    @@ -375,3 +377,13 @@ case class TemporalOverlaps(
       }
     }
     
    +case class DateFormat(timestamp: Expression, format: Expression) extends Expression {
    +  override private[flink] def children = timestamp :: format :: Nil
    +
    +  override private[flink] def toRexNode(implicit relBuilder: RelBuilder) =
    +    relBuilder.call(DateTimeSqlFunction.DATE_FORMAT, timestamp.toRexNode, format.toRexNode)
    +
    +  override def toString: String = s"$timestamp.dateformat($format)"
    --- End diff --
    
    `dateFormat`


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message