Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-45731

Update partition statistics with ANALYZE TABLE command

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 4.0.0
    • 4.0.0
    • SQL

    Description

      Currently ANALYZE TABLE command only updates table-level stats but not partition stats, even though it can be applied to both non-partitioned and partitioned tables. It seems make sense for it to update partition stats as well.

      Note users can use ANALYZE TABLE PARTITION(..) to get the same effect, but the syntax is more verbose as they need to specify all the partition columns.

      Attachments

        Issue Links

          Activity

            People

              csun Chao Sun
              csun Chao Sun
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: