[jira] [Updated] (CALCITE-1312) Return type of TIMESTAMP_ADD applied to a DATE should be TIMESTAMP if unit is smaller than DAY

2016-07-12 Thread Julian Hyde (JIRA)
[ https://issues.apache.org/jira/browse/CALCITE-1312?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Julian Hyde updated CALCITE-1312: - Summary: Return type of TIMESTAMP_ADD applied to a DATE should be TIMESTAMP if unit is smaller

[jira] [Comment Edited] (CALCITE-1312) timestamp_add(UNIT, DATE) should return timestamp if the unit added is less than a date, timestamp_diff should handle null dates

2016-07-12 Thread MinJi Kim (JIRA)
[ https://issues.apache.org/jira/browse/CALCITE-1312?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15373441#comment-15373441 ] MinJi Kim edited comment on CALCITE-1312 at 7/12/16 6:48 PM: - Thanks for the

[jira] [Commented] (CALCITE-1312) timestamp_add(UNIT, DATE) should return timestamp if the unit added is less than a date, timestamp_diff should handle null dates

2016-07-12 Thread MinJi Kim (JIRA)
[ https://issues.apache.org/jira/browse/CALCITE-1312?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15373441#comment-15373441 ] MinJi Kim commented on CALCITE-1312: Thanks for the review. I made the changes you suggested.

[jira] [Updated] (CALCITE-1312) timestamp_add(UNIT, DATE) should return timestamp if the unit added is less than a date, timestamp_diff should handle null dates

2016-07-12 Thread MinJi Kim (JIRA)
[ https://issues.apache.org/jira/browse/CALCITE-1312?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] MinJi Kim updated CALCITE-1312: --- Description: timestamp_add("MINUTE", 1, date '2016-06-15') returns 2016-06-15 since it returns a

[jira] [Updated] (CALCITE-1312) timestamp_add(UNIT, DATE) should return timestamp if the unit added is less than a date, timestamp_diff should handle null dates

2016-07-12 Thread MinJi Kim (JIRA)
[ https://issues.apache.org/jira/browse/CALCITE-1312?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] MinJi Kim updated CALCITE-1312: --- Summary: timestamp_add(UNIT, DATE) should return timestamp if the unit added is less than a date,