[ https://issues.apache.org/jira/browse/FLINK-6847?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16571391#comment-16571391 ]
ASF GitHub Bot commented on FLINK-6847: --------------------------------------- twalthr commented on a change in pull request #6282: [FLINK-6847][FLINK-6813] [table] TimestampDiff table api and sql support URL: https://github.com/apache/flink/pull/6282#discussion_r208151812 ########## File path: flink-libraries/flink-table/src/main/scala/org/apache/flink/table/codegen/CodeGenerator.scala ########## @@ -769,9 +769,10 @@ abstract class CodeGenerator( case PLUS | DATETIME_PLUS if isTemporal(resultType) => val left = operands.head val right = operands(1) + val typeName = call.getType().getSqlTypeName() Review comment: Remove this line and use `resultType` instead? This would also simplify the patterns in `generateTemporalPlusMinus`. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org > Add TIMESTAMPDIFF supported in TableAPI > --------------------------------------- > > Key: FLINK-6847 > URL: https://issues.apache.org/jira/browse/FLINK-6847 > Project: Flink > Issue Type: Sub-task > Components: Table API & SQL > Affects Versions: 1.4.0 > Reporter: sunjincheng > Priority: Major > Labels: pull-request-available, starter > > see FLINK-6813 -- This message was sent by Atlassian JIRA (v7.6.3#76005)