Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-2427

Warn user that precision is lost when bigint is implicitly cast to double in joins and unions.

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      When a bigint is implicitly cast to a double (when a bigint is involved in an equality expression with a string or double as part of a join condition, or when a bigint column is to be combined with a string or double column as part of a union) precision may be lost, resulting in unexpected behavior. Until we fix the underlying issue we should throw an error in strict mode, and a warning in nonstrict mode alerting the user about this.

        Attachments

        1. HIVE-2427.1.patch.txt
          25 kB
          Kevin Wilfong
        2. HIVE-2427.2.patch.txt
          26 kB
          Kevin Wilfong
        3. HIVE-2427.3.patch.txt
          23 kB
          Kevin Wilfong
        4. ASF.LICENSE.NOT.GRANTED--HIVE-2427.D2181.1.patch
          23 kB
          Phabricator
        5. HIVE-2427.5.patch.txt
          19 kB
          Kevin Wilfong

          Activity

            People

            • Assignee:
              kevinwilfong Kevin Wilfong
              Reporter:
              kevinwilfong Kevin Wilfong
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: