N Campbell created IMPALA-6313:
----------------------------------

             Summary: length function returns incorrect value when input is a 
cast of a string literal
                 Key: IMPALA-6313
                 URL: https://issues.apache.org/jira/browse/IMPALA-6313
             Project: IMPALA
          Issue Type: Bug
          Components: Backend
    Affects Versions: Impala 2.9.0
            Reporter: N Campbell
            Priority: Minor



The following expressions return a value of 32

select length( concat( cast ( 'a' as char(32) ), '' ) )  from cert.tversion
select length( 'a                               ') from cert.tversion

This expression returns  a value of 1 and not 32
select length( cast ( 'a' as char(32) ) ) from cert.tversion




--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to