Open anStalf opened 3 months ago
Manticore 6.3.2 with the same problem. Checked:
show version;
+-----------+----------------------------------+
| Component | Version |
+-----------+----------------------------------+
| Daemon | 6.3.2 c296dc7c8@24062606 |
| Columnar | columnar 2.3.0 88a01c3@24052206 |
| Secondary | secondary 2.3.0 88a01c3@24052206 |
| KNN | knn 2.3.0 88a01c3@24052206 |
| Buddy | buddy v2.3.10 |
+-----------+----------------------------------+
5 rows in set (0.01 sec)
+-----------+-------+-------+-------+
| name | count | price | total |
+-----------+-------+-------+-------+
| Product 3 | 1 | 22 | 0 |
| Product 2 | 2 | 15 | 0 |
| Product 5 | 4 | 99 | 0 |
+-----------+-------+-------+-------+
3 rows in set (0.00 sec)
--- 3 out of 3 results in 0ms ---
mysql> drop table if exists j; create table j(a int); drop table if exists j2; create table j2(b int); insert into j values(1, 1); insert into j2 values(1, 2); select a, j2.b as b2, a * b2 from j left join j2 on j.id = j2.id;
--------------
drop table if exists j
--------------
Query OK, 0 rows affected (0.01 sec)
--------------
create table j(a int)
--------------
Query OK, 0 rows affected (0.00 sec)
--------------
drop table if exists j2
--------------
Query OK, 0 rows affected (0.00 sec)
--------------
create table j2(b int)
--------------
Query OK, 0 rows affected (0.00 sec)
--------------
insert into j values(1, 1)
--------------
Query OK, 1 row affected (0.00 sec)
--------------
insert into j2 values(1, 2)
--------------
Query OK, 1 row affected (0.00 sec)
--------------
select a, j2.b as b2, a * b2 from j left join j2 on j.id = j2.id
--------------
+------+------+--------+
| a | b2 | a * b2 |
+------+------+--------+
| 1 | 2 | 0 |
+------+------+--------+
1 row in set (0.00 sec)
--- 1 out of 1 results in 0ms ---
Expected:
+------+------+--------+
| a | b2 | a * b2 |
+------+------+--------+
| 1 | 2 | 2 |
+------+------+--------+
Reproduced in:
Manticore 6.3.3 fb447b264@24071413 dev (columnar 2.3.1 42f2b06@24070110) (secondary 2.3.1 42f2b06@24070110) (knn 2.3.1 42f2b06@24070110)
Bug Description:
In the manticore, the count is not calculated by multiplying it by the price.
How it's work in MySQL:
RESULT
How it's work in Manticore:
RESULT:
Manticore Search Version:
6.3.0
Operating System Version:
docker
Have you tried the latest development version?
None
Internal Checklist:
To be completed by the assignee. Check off tasks that have been completed or are not applicable.