sduzh opened a new issue #3865:
URL: https://github.com/apache/incubator-doris/issues/3865
**Describe the bug**
Incorrect result of natural join.
**To Reproduce**
```SQL
CREATE TABLE t0(c0 int)DUPLICATE KEY(c0) DISTRIBUTED BY HASH(c0) BUCKETS 1
PROPERTIES("replication_num"="1");
CREATE TABLE t1(c0 int)DUPLICATE KEY(c0) DISTRIBUTED BY HASH(c0) BUCKETS 1
PROPERTIES("replication_num"="1");
insert into t0 values(1),(2);
insert into t1 values(1),(2);
select * from t0 natural join t1;
```
**Expected behavior**
```
+------+
| c0 |
+------+
| 1 |
| 2 |
+------+
```
**Real behavior**
```
+------+------+
| c0 | c0 |
+------+------+
| 1 | 1 |
| 1 | 2 |
| 2 | 1 |
| 2 | 2 |
+------+------+
```
----------------------------------------------------------------
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:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]