TiDB is an open-source, cloud-native, distributed, MySQL-Compatible database for elastic scale and real-time analytics. Try AI-powered Chat2Query free at : https://www.pingcap.com/tidb-serverless/
My cluster version is v7.5.0.
The time of running TPC-H Q19 is different with and without explain analyze.
The root cause is that later materialization is only enabled with explain analyze for TPC-H Q19.
When running Q19 directly, the in(tpch100.lineitem.l_shipmode, "AIR", "AIR REG") does not pushed down to table scan, leading to 2.6s on my server.
However, when running Q19 with explain analyze, the in(tpch100.lineitem.l_shipmode, "AIR", "AIR REG") can be pushed down to table scan, leading to 2.0s.
Bug Report
My cluster version is v7.5.0. The time of running TPC-H Q19 is different with and without
explain analyze
. The root cause is that later materialization is only enabled withexplain analyze
for TPC-H Q19. When running Q19 directly, thein(tpch100.lineitem.l_shipmode, "AIR", "AIR REG")
does not pushed down to table scan, leading to 2.6s on my server.However, when running Q19 with
explain analyze
, thein(tpch100.lineitem.l_shipmode, "AIR", "AIR REG")
can be pushed down to table scan, leading to 2.0s.