|
As observed in MDEV-29502[1], spider query rewrites may add a spurious extra column in queries sent to data nodes.
For example, in the test spider.direct_aggregate_part and spider/bg.direct_aggregate_part, the query to spider table query "SELECT SUM(a) FROM ta_l2" is rewritten as "select sum(`a`),min(`a`) from `auto_test_remote`.`ta_r2` limit 2". The "limit 2" could come from the knowledge there are two rows in the remote table, but the extra "min(`a`)" makes no sense.
[1] https://jira.mariadb.org/browse/MDEV-29502?focusedCommentId=264225&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-264225
This probably affects other versions too.
|