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

Bigint and float's compatible type is double.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • Impala 1.0.1
    • Impala 1.1
    • None
    • None

    Description

      Our compatibility matrix states that bigint is compatible with float if both are promoted to double.
      This seems incorrect to me because a bigint can be converted to a float without loss of precision.

      This causes problems for, e.g., inserts. The following query will fail to analyze, although there is no danger of losing precision.

      insert into float_t values (cast (123 as bigint))

      Attachments

        Activity

          People

            alex.behm Alexander Behm
            alex.behm Alexander Behm
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: