Zhou Xu has uploaded this change for review. (
http://gerrit.cloudera.org:8080/14896
Change subject: IMPALA-9035: Simplify casting string to timestamp.
......................................................................
IMPALA-9035: Simplify casting string to timestamp.
Case 1:
Simplify 'string -> bigint -> timestamp' TO 'string -> timestamp':
cast(unix_timestamp('timestr') as timestamp) -> cast('timestr' as timestamp)
Case 2:
Simplify 'string[fmt] -> bigint -> timestamp' TO 'string -> timestamp':
cast(unix_timestamp('timestr', 'fmt') as timestamp) -> to_timestamp('timestr',
'fmt')
Change-Id: I4ed72d6e7886eaf50d2be60cf45170ffaef5e72d
---
M fe/src/main/java/org/apache/impala/analysis/Analyzer.java
A fe/src/main/java/org/apache/impala/rewrite/SimplifyCastStringToTimestamp.java
2 files changed, 79 insertions(+), 0 deletions(-)
git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/96/14896/1
--
To view, visit http://gerrit.cloudera.org:8080/14896
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I4ed72d6e7886eaf50d2be60cf45170ffaef5e72d
Gerrit-Change-Number: 14896
Gerrit-PatchSet: 1
Gerrit-Owner: Zhou Xu <[email protected]>