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

Stats annotation might not extract stats for varchar/decimal columns

    Details

      Description

      It is because StatsUtils uses the String.startWith to compare VARCHAR/DECIMAL column type name with serdeConstants which are in lowercase. But these type names in stats might not be in lower case. We ran into a case where the type name from TAB_COL_STATS/PART_COL_STATS was actually in uppercase (e.g. VARCHAR, DECIMAL) because these column stats were populated from other HMS clients like Impala.
      We need changes these type name comparison to be case insensitive

        Attachments

          Activity

            People

            • Assignee:
              ctang.ma Chaoyu Tang
              Reporter:
              ctang.ma Chaoyu Tang
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: