Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-11711

Add table and column stats

    XMLWordPrintableJSON

Details

    Description

      We define two structure mode to hold statistics

      1. TableStats: statistics for table level, contains 2 elements:

      rowCount: Long // the number of row count of table

      colStats: Map[String, ColumnStats] // map each column to its ColumnStats

      2. ColumnStats: statistics for column level, contains 6 elements:

      ndv: Long // number of distinct values

      nullCount: Long // number of null values

      avgLen: Double // average length of column values

      maxLen: Integer // max length of column values

      max: Any // max value of column values

      min: Any // min value of column values

      Attachments

        Issue Links

          Activity

            People

              godfreyhe godfrey he
              godfreyhe godfrey he
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h