You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-29 08:21:15 +03:00
fix(TNS): fix for duplicate DISTINCT output
This commit is contained in:
@ -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();
|
||||||
|
@ -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
|
||||||
|
Reference in New Issue
Block a user