Skip to content

[Bug] collect_list without groupby make be crashed #11528

Closed

Description

@cambyzju

Search before asking

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

Version

master-latest

What's Wrong?

select collect_list(email) from collect_tbl;

make BE crashed:
F0804 21:18:40.991986 70554 vaggregation_node.cpp:532] Check failed: ((DataTypeNullable*)column_type.get()) ->get_nested_type() ->equals(*data_types[i])

Because of nested type of Array, Array(Nullable(String)) do not equal Array(String).

What You Expected?

fix

How to Reproduce?

  1. create table with NOT NULL column;
CREATE TABLE `collect_tbl` (
  `k1` int(11) NULL,
  `email` varchar(20) NOT NULL
) ENGINE=OLAP
DUPLICATE KEY(`k1`)
COMMENT 'OLAP'
DISTRIBUTED BY HASH(`k1`) BUCKETS 5
PROPERTIES (
"replication_allocation" = "tag.location.default: 1",
"in_memory" = "false",
"storage_format" = "V2"
);
  1. insert some test data, like:
> select * from collect_tbl;
+------+-------+
| k1   | email |
+------+-------+
|    2 | e2    |
|    1 | e3    |
|    1 | e1    |
+------+-------+
  1. call collect_list
    select collect_list(email) from collect_tbl;

Anything Else?

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

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