When TiDB is executing a SQL statement, the query will be EXPENSIVE_QUERY
if each operator is estimated to process over 10,000 rows. You can modify the tidb-server
configuration parameter to adjust the threshold and then restart the tidb-server
.