session: fix benchmark test regression BenchmarkPartitionPruning (#38154)
session: fix benchmark test regression BenchmarkPartitionPruning (#38154)

close pingcap/tidb#37708
pingcap/tidb,pingcap/tidb,pingcap/tidb,pingcap/tidb,pingcap/tidb,pingcap/tidb