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

LPAD returns incorrect result

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • Impala 0.3
    • Impala 0.4
    • None
    • None

    Description

      I see different output when LPAD is used in hive and impala,
      here's my table definition,

      [localhost:21000] > describe accesslog;
      sessionid string
      cookie string
      country string
      browser string
      ......

      Here's output from hive
      hive> select (lpad(sessionid,2,'0')) from accesslog;
      OK
      01
      01
      02
      02
      03
      03
      04
      04

      Here's output from Impala,
      [localhost:21000] > select (lpad(sessionid,2,'0')) from accesslog;
      01
      011
      0112
      01122
      011223
      0112233
      01122334
      011223344

      Attachments

        Activity

          People

            nong_impala_60e1 Nong Li
            alan@cloudera.com Alan Choi
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: