Skip to content

[Bug] After left join, there are two rows of the same key after group by #9544

Description

@gj-zhang

Search before asking

  • I had searched in the issues and found no similar issues.

Version

1.0.0-rc03

What's Wrong?

image

What You Expected?

result one row

How to Reproduce?

CREATETABLE `left_table`
(
`id`textNULL COMMENT "",
`device_id`textNULL COMMENT ""
) ENGINE = OLAP UNIQUE KEY(`id`)
COMMENT "OLAP"
DISTRIBUTED BY HASH(`id`) BUCKETS 4
PROPERTIES (
"replication_allocation"="tag.location.default: 2",
"in_memory"="false",
"storage_format"="V2"
);
insert into left_table values ('1', '1'),('2', '2'), ('3', '3'), ('4', '4');
CREATETABLE `right_table`
(
`device_id`textNULL COMMENT "",
`device_name`textNULL COMMENT ""
) ENGINE = OLAP UNIQUE KEY(`device_id`)
COMMENT "OLAP"
DISTRIBUTED BY HASH(`device_id`) BUCKETS 4
PROPERTIES (
"replication_allocation"="tag.location.default: 2",
"in_memory"="false",
"storage_format"="V2"
);
insert into right_table values ('1', 'device_name1'), ('3', null);
selectcount(left_table.device_id), rt.device_namefrom left_table
left join right_table rt
onleft_table.device_id=rt.device_idwherert.device_name is nullgroup byrt.device_nameorder byrt.device_name nulls first

Anything Else?

merge #8822 code

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions