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

If data overflows FLOAT/DOUBLE data type, impala should issue a warning

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Not A Bug
    • Impala 2.3.0
    • None
    • Backend

    Description

      See test case below:

      create table test (a float);
      

      put the following data manually into HDFS location for the table:

      3.302823479723636e+38
      3.302823479723636e+58
      test
      

      now select data out from Impala return the following:

      Query: select * from test
      +-----------------------+
      | a                     |
      +-----------------------+
      | 3.302823479723636e+38 |
      | Infinity              |
      | NULL                  |
      +-----------------------+
      WARNINGS: Error converting column: 0 TO FLOAT (Data is: test)
      file: hdfs://host-10-17-80-87.coe.cloudera.com:8020/user/hive/warehouse/case_88616.db/test/float.txt
      record: test
      
      Fetched 3 row(s) in 1.48s
      

      Ideally both records 2 and 3 should both return NULL for consistency with similar error message.

      Attachments

        Activity

          People

            Unassigned Unassigned
            ericlin Eric Lin
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: