Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-6313

length function returns incorrect value when input is a cast of a string literal

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Duplicate
    • Impala 2.9.0, Impala 2.11.0
    • None
    • Backend
    • ghx-label-3

    Description

      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
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              the6campbells N Campbell
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: