1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-30 19:23:07 +03:00

fix(TNS): fix for duplicate DISTINCT output

This commit is contained in:
drrtuy
2025-03-14 00:04:47 +00:00
parent 09926b3157
commit 8ca8119f36
2 changed files with 2 additions and 7 deletions

View File

@ -582,12 +582,6 @@ void TupleAnnexStep::executeNoOrderByWithDistinct()
if (fRowGroupOut.getRowCount() > 0) if (fRowGroupOut.getRowCount() > 0)
dataVec.push_back(rgDataOut); dataVec.push_back(rgDataOut);
for (vector<RGData>::iterator i = dataVec.begin(); i != dataVec.end(); i++)
{
rgDataOut = *i;
fRowGroupOut.setData(&rgDataOut);
fOutputDL->insert(rgDataOut);
}
while (!dataVec.empty()) while (!dataVec.empty())
{ {
auto& rgData = dataVec.back(); auto& rgData = dataVec.back();

View File

@ -27,7 +27,7 @@ CREATE VIEW v AS
SELECT a.id a_id, b.id b_id, b.ta_id, a.value v1, b.value v2 SELECT a.id a_id, b.id b_id, b.ta_id, a.value v1, b.value v2
FROM table_a a FROM table_a a
INNER JOIN table_b b ON (b.ta_id = a.id); INNER JOIN table_b b ON (b.ta_id = a.id);
--sorted_result
SELECT * FROM v; SELECT * FROM v;
#Can not modify more than one base table through a join view #Can not modify more than one base table through a join view
@ -41,6 +41,7 @@ INSERT INTO v (a_id, v1) VALUES (3, 30);
--error 1178 --error 1178
INSERT INTO v (b_id, ta_id, v2) VALUES (5, 3, 500); INSERT INTO v (b_id, ta_id, v2) VALUES (5, 3, 500);
--sorted_result
SELECT * FROM v; SELECT * FROM v;
#Clean up #Clean up