adrpar / paqu

A parallel query engine for MySQL + Spider Engine built on a fork of shard-query
GNU General Public License v2.0
10 stars 0 forks source link

One more column returned than asked for #33

Open kristinriebe opened 9 years ago

kristinriebe commented 9 years ago

This is a non-critical issue, just unexpected behaviour that may be inconvenient.

Query

select fofTreeId, fofId from MDR1.FOFMtree where treeSnapnum=39 
order by mass desc limit 100

Query plan

-- CALL paquExec('SELECT `fofTreeId` AS `fofTreeId`,`fofId` AS `fofId`,`mass` AS `mass` FROM MDR1.FOFMtree WHERE ( `treeSnapnum` = 39 ) ORDER BY `mass` DESC LIMIT 0,100', 'aggregation_tmp_49437004')
-- USE spider_tmp_shard
-- SET @i=0-- CREATE TABLE cosmosim_user_guest.`mtree-ids` ENGINE=MyISAM SELECT @i:=@i+1 AS `row_id`, `fofTreeId`,`fofId`,`mass` FROM `aggregation_tmp_49437004` ORDER BY `mass` DESC LIMIT 0,100
-- CALL paquDropTmp('aggregation_tmp_49437004') 

Problem The mass-column is not in the select-list, but was returned anyway. This leads to more data being returned (downloaded) than the user expected.