[ 
https://issues.apache.org/jira/browse/IMPALA-889?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Michael Smith resolved IMPALA-889.
----------------------------------
    Fix Version/s: Impala 4.5.0
       Resolution: Fixed

> Add trim() function matching ANSI SQL definition
> ------------------------------------------------
>
>                 Key: IMPALA-889
>                 URL: https://issues.apache.org/jira/browse/IMPALA-889
>             Project: IMPALA
>          Issue Type: New Feature
>          Components: Backend
>    Affects Versions: Impala 1.2.4
>            Reporter: Jonathan Seidman
>            Assignee: Mihaly Szjatinya
>            Priority: Minor
>              Labels: ansi-sql, built-in-function, ramp-up
>             Fix For: Impala 4.5.0
>
>
> Add support for an ISO-SQL compliant trim() function, i.e. trim([leading | 
> trailing | both] [characters] from string). Lack of this impacts users of BI 
> tools migrating existing SQL from other systems.
> Reference: 
> https://my.vertica.com/docs/8.1.x/HTML/index.htm#Authoring/SQLReferenceManual/Functions/String/TRIM.htm
> Part of the ANSI definition
> {noformat}
> <trim function> ::=
>   TRIM <left paren> <trim operands> <right paren>
> <trim operands> ::=
>   [ [ <trim specification> ] [ <trim character> ] FROM ] <trim source>
> <trim source> ::=
>   <character value expression>
> <trim specification> ::=
>     LEADING
>   | TRAILING
>   | BOTH
> {noformat}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to