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

Hit NullPointerException when perform modulus (%) between non-integer number

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • Impala 1.0.1
    • Impala 1.2
    • None
    • Hadoop 2.0.0-cdh4.3.0

    Description

      When performed the following query which include the modulus operator in impala, it will hit NullPointerException:

      [MYRNDSVRVM311:21000] > select (3.55 % 2) from city;
      Query: select (3.55 % 2) from city
      ERROR: AnalysisException: null
      CAUSED BY: NullPointerException: null
      [MYRNDSVRVM311:21000] > select (3 % 2) from city limit 1;
      Query: select (3 % 2) from city limit 1
      Query finished, fetching results ...
      -------

      3 % 2

      -------

      1

      -------
      Returned 1 row(s) in 0.55s
      [MYRNDSVRVM311:21000] >

      When performed the same query in hive, everything works well. Impala query only works fine when we try to use modulus (%) between two integer.

      Attachments

        1. impala_log.txt
          4 kB
          Kuek Chiew Yea
        2. impala-modulus-error.jpg
          16 kB
          Kuek Chiew Yea

        Activity

          People

            alex.behm Alexander Behm
            kcyea83 Kuek Chiew Yea
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: