Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Fix](statistics)Fix update cached column stats bug (#23049)
`show column cached stats` sometimes show wrong min/max value: ``` mysql> show column cached stats hive.tpch100.region; +-------------+-------+------+----------+-----------+---------------+------+------+--------------+ | column_name | count | ndv | num_null | data_size | avg_size_byte | min | max | updated_time | +-------------+-------+------+----------+-----------+---------------+------+------+--------------+ | r_regionkey | 5.0 | 5.0 | 0.0 | 24.0 | 4.0 | N/A | N/A | null | | r_comment | 5.0 | 5.0 | 0.0 | 396.0 | 66.0 | N/A | N/A | null | | r_name | 5.0 | 5.0 | 0.0 | 40.8 | 6.8 | N/A | N/A | null | +-------------+-------+------+----------+-----------+---------------+------+------+--------------+ ``` This pr is to fix this bug. It is because while transferring ColumnStatistic object to JSON, it doesn't contain the minExpr and maxExpr attribute.
- Loading branch information