Kim Jin Chul has uploaded a new change for review.

  http://gerrit.cloudera.org:8080/7450

Change subject: IMPALA-5529: Add additional function signatures for TRUNC()
......................................................................

IMPALA-5529: Add additional function signatures for TRUNC()

The following signatures to be added:
+--------------+----------------------------------+-------------+---------------+
| return type  | signature                        | binary type | is persistent 
|
+--------------+----------------------------------+-------------+---------------+
| BIGINT       | trunc(BIGINT)                    | BUILTIN     | true          
|
| DECIMAL(*,*) | trunc(DECIMAL(*,*))              | BUILTIN     | true          
|
| DECIMAL(*,*) | trunc(DECIMAL(*,*), BIGINT)      | BUILTIN     | true          
|
| DECIMAL(*,*) | trunc(DECIMAL(*,*), INT)         | BUILTIN     | true          
|
| DECIMAL(*,*) | trunc(DECIMAL(*,*), SMALLINT)    | BUILTIN     | true          
|
| DECIMAL(*,*) | trunc(DECIMAL(*,*), TINYINT)     | BUILTIN     | true          
|
| BIGINT       | trunc(DOUBLE)                    | BUILTIN     | true          
|
| INT          | trunc(INT)                       | BUILTIN     | true          
|
| SMALLINT     | trunc(SMALLINT)                  | BUILTIN     | true          
|
| TIMESTAMP    | trunc(TIMESTAMP, STRING)         | BUILTIN     | true          
|
| TINYINT      | trunc(TINYINT)                   | BUILTIN     | true          
|
+--------------+----------------------------------+-------------+---------------+

Change-Id: I856da9f817b948de3c72af60a0742b128398b4cf
---
M common/function-registry/impala_functions.py
M fe/src/main/java/org/apache/impala/analysis/FunctionCallExpr.java
2 files changed, 11 insertions(+), 6 deletions(-)


  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/50/7450/1
-- 
To view, visit http://gerrit.cloudera.org:8080/7450
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I856da9f817b948de3c72af60a0742b128398b4cf
Gerrit-PatchSet: 1
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-Owner: Kim Jin Chul <[email protected]>

Reply via email to