Please answer these questions before submitting your issue. Thanks!
Execute SQL statement:
SELECT SUM(TABLE_ROWS) FROM INFORMATION_SCHEMA.TABLES;
Expect a statement digest text that does not have syntax errors, like
SELECT SUM(TABLE_ROWS) FROM INFORMATION_SCHEMA.TABLES
in INFORMATION_SCHEMA.CLUSTER_STATEMENTS_SUMMARY_HISTORY table.
select sum ( table_rows ) from information_schema . tables
Note that this SQL statement will throw syntax error:
1064 - You have an error in your SQL syntax; check the manual that corresponds to your TiDB version for the right syntax to use line 1 column 12 near "( table_rows ) from information_schema . tables" , Time: 0.000000s
My version is v4.0.2
while the extra spaces can be considered a bug, i don't think the digest text are supposed to be syntax-error-free (literals and lists are substituted by ? and ...).
@kennytm Yes, we only expect syntax-error free for this specific case.
There are a couple of other issues with the digester if anyone wants to take a look at these together:
https://github.com/pingcap/tidb/issues/14241
https://github.com/pingcap/tidb/issues/18224
Most helpful comment
There are a couple of other issues with the digester if anyone wants to take a look at these together:
https://github.com/pingcap/tidb/issues/14241
https://github.com/pingcap/tidb/issues/18224