You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by GitBox <gi...@apache.org> on 2021/01/04 01:44:46 UTC
[GitHub] [incubator-doris] morningman opened a new issue #5188: [Bug] Wrong query result of min/max for string type col
morningman opened a new issue #5188:
URL: https://github.com/apache/incubator-doris/issues/5188
**Describe the bug**
```
mysql> create table tbl5 (k1 int, v1 varchar(32) max, v2 varchar(32) min) distributed by hash(k1) buckets 1 properties("replication_num" = "1");
Query OK, 0 rows affected (0.04 sec)
mysql> insert into tbl5 values(1, null, null);
Query OK, 1 row affected (0.05 sec)
{'label':'insert_5546aa85dcd14f74-997b253c2c5a09f6', 'status':'VISIBLE', 'txnId':'400533955'}
mysql> insert into tbl5 values(1, "a", "b");
Query OK, 1 row affected (0.06 sec)
{'label':'insert_3b74d1d635084cf8-bc7ad886b3beff82', 'status':'VISIBLE', 'txnId':'400533956'}
mysql> select max(v1), min(v2) from tbl5;
+-----------+-----------+
| max(`v1`) | min(`v2`) |
+-----------+-----------+
| NULL | NULL |
+-----------+-----------+
```
**Expected behavior**
```
mysql> select max(v1), min(v2) from tbl5;
+-----------+-----------+
| max(`v1`) | min(`v2`) |
+-----------+-----------+
| a | b |
+-----------+-----------+
```
- Version [0.13.12]
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
[GitHub] [incubator-doris] yangzhg closed issue #5188: [Bug] Wrong query result of min/max for string type col
Posted by GitBox <gi...@apache.org>.
yangzhg closed issue #5188:
URL: https://github.com/apache/incubator-doris/issues/5188
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org