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

Change type compatibility methods to use PrimitiveCategory rather than TypeInfo

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.13.0
    • None
    • 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.D12687.1.patch
          17 kB
          Phabricator
        2. HIVE-5204.2.patch
          18 kB
          Jason Dere
        3. HIVE-5204.1.patch
          18 kB
          Jason Dere

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: