LuciferYang opened a new pull request, #11419: URL: https://github.com/apache/paimon/pull/11419
### Purpose Closes #11383. Spark 4.2 (SPARK-39660) plans `DESCRIBE ... PARTITION` as `DescribeTablePartition`, which `PaimonStrategy` does not match, so on 4.2 and 4.3 Spark's own exec prints the raw `loadPartitionMetadata` map instead of Paimon's description. Before 4.2, `PaimonDescribeTableExec` matches spec strings against the catalog's partition names, so blank, NULL, DATE, TIMESTAMP and `m = '09'` partitions report "Found 0 matching partitions". This PR resolves the spec by value on every version and adds a 4.2-module strategy that sends `DescribeTablePartition` to `PaimonDescribeTableExec`. Statistics come from the table's own scan, projected to the partition columns, as in `SHOW TABLE EXTENDED ... PARTITION`. Behavior changes: - Plain `DESCRIBE` fails on a missing partition too. - The NULL partition is `= NULL`, not `= '__DEFAULT_PARTITION__'`. - Statistics reported by a REST server are no longer shown. - Fallback branch, time travel, `scan.bucket` and query auth apply as in a read. ### Tests - `DescribeTableTestBase`: lookup by value (blank vs NULL, an upper-case column name, the default partition name, a missing partition), INT/DATE/TIMESTAMP/BINARY values, a DV table whose files are all at level 0, a partition only the fallback branch holds (`DESCRIBE` and `SHOW`), session time travel, and `t$audit_log`. - `UnreportedPartitionStatisticsTest`: the fixture injects unknown statistics through `loadPartitionMetadata` instead of the catalog listing. - `SparkPartitionMetadataAuthTest`: a user granted only the partition columns can describe a partition. - `paimon-spark-4.2` now runs `DescribeTableTest` and `UnreportedPartitionStatisticsTest`, so the spark42 and spark43 lanes cover them. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
