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

Unable to fetch column stats from decimal columns

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.13.0
    • Fix Version/s: 0.14.0
    • Component/s: Statistics
    • Labels:
      None

      Description

      After HIVE-6701, column stats for decimal columns can be computed. However, when the stats are fetched, nothing is returned. The problem was originally reproducible using thrift API. With the patch in HIVE-7050, the problem can be also produced using "desc formatted table column".

      hive> desc formatted dec i;   
      OK
      # col_name            	data_type           	min                 	max                 	num_nulls           	distinct_count      	avg_col_len         	max_col_len         	num_trues           	num_falses          	comment             
      	 	 	 	 	 	 	 	 	 	 
      i                   	int                 	0                   	4                   	0                   	5                   	null                	null                	null                	null                	from deserializer   
      hive> desc formatted dec d;
      OK
      # col_name            	data_type           	min                 	max                 	num_nulls           	distinct_count      	avg_col_len         	max_col_len         	num_trues           	num_falses          	comment             
      	 	 	 	 	 	 	 	 	 	 
      d                   	decimal(5,2)        	from deserializer   	 	 	 	 	 	 	 	 
      

        Attachments

        1. HIVE-7053.patch
          7 kB
          Xuefu Zhang

          Activity

            People

            • Assignee:
              xuefuz Xuefu Zhang
              Reporter:
              xuefuz Xuefu Zhang
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: