You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2026/03/31 04:04:00 UTC

[jira] [Updated] (SPARK-56176) V2-native ANALYZE TABLE and ANALYZE COLUMN for file tables

     [ https://issues.apache.org/jira/browse/SPARK-56176?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

ASF GitHub Bot updated SPARK-56176:
-----------------------------------
    Labels: pull-request-available  (was: )

> V2-native ANALYZE TABLE and ANALYZE COLUMN for file tables
> ----------------------------------------------------------
>
>                 Key: SPARK-56176
>                 URL: https://issues.apache.org/jira/browse/SPARK-56176
>             Project: Spark
>          Issue Type: Sub-task
>          Components: SQL
>    Affects Versions: 4.2.0
>            Reporter: Yang Jie
>            Priority: Major
>              Labels: pull-request-available
>
> Implement `ANALYZE TABLE COMPUTE STATISTICS` and `ANALYZE COLUMN` for V2 file tables without delegation to V1 commands. New `AnalyzeTableExec`: computes table size and row count, persists via `TableCatalog.alterTable()` + `TableChange.setProperty()` (`spark.sql.statistics.totalSize`, `spark.sql.statistics.numRows`). New `AnalyzeColumnExec`: computes column-level statistics (min, max, nullCount, distinctCount, avgLen, maxLen). `FileScan.numRows()` reads stored row count from table properties (injected via `FileTable.mergedOptions` as `__numRows`). `DataSourceV2Strategy` routes `AnalyzeTable`/`AnalyzeColumn` for `FileTable` to V2 exec nodes.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org