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 Improvement
    • Status: Open
    • Priority: Major 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.

      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

        Namit Jain made changes -
        Status Patch Available [ 10002 ] Open [ 1 ]
        Kevin Wilfong made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Kevin Wilfong made changes -
        Attachment HIVE-2427.5.patch.txt [ 12534033 ]
        Namit Jain made changes -
        Status Patch Available [ 10002 ] Open [ 1 ]
        Phabricator made changes -
        Attachment HIVE-2427.D2181.1.patch [ 12517522 ]
        Kevin Wilfong made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Kevin Wilfong made changes -
        Attachment HIVE-2427.3.patch.txt [ 12502515 ]
        Kevin Wilfong made changes -
        Attachment HIVE-2427.2.patch.txt [ 12493183 ]
        Kevin Wilfong made changes -
        Attachment HIVE-2427.2.patch.txt [ 12493182 ]
        Kevin Wilfong made changes -
        Attachment HIVE-2427.2.patch.txt [ 12493182 ]
        Kevin Wilfong made changes -
        Field Original Value New Value
        Attachment HIVE-2427.1.patch.txt [ 12492773 ]
        Kevin Wilfong created issue -

          People

          • Assignee:
            Kevin Wilfong
            Reporter:
            Kevin Wilfong
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:

              Development