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

Change type compatibility methods to use PrimitiveCategory rather than TypeInfo

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.13.0
    • Component/s: None
    • Labels:
      None

      Description

      The type compatibility methods in the FunctionRegistry (getCommonClass, implicitConvertable) compare TypeInfo objects directly when its doing its type compatibility logic. This won't work as well with qualified types (varchar, char, decimal), because we will need different TypeInfo objects to represent varchar(5) and varchar(10), and the equality comparisons won't work anymore. We can change this logic to look at the PrimitiveCategory for the TypeInfo instead.

        Attachments

        1. HIVE-5204.2.patch
          18 kB
          Jason Dere
        2. HIVE-5204.D12687.1.patch
          17 kB
          Phabricator
        3. HIVE-5204.1.patch
          18 kB
          Jason Dere

          Issue Links

            Activity

              People

              • Assignee:
                jdere Jason Dere
                Reporter:
                jdere Jason Dere
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: