Skip to content

[Bug][array-type] Failed to select array type data after enable storage vectorization. #10064

@adonis0147

Description

@adonis0147

Search before asking

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

Version

master

What's Wrong?

In commit #9848 , the configuration enable_storage_vectorization in BE was enabled by default.

However, the ArrayFileColumnIterator didn't implement the interface Status next_batch(size_t* n, vectorized::MutableColumnPtr& dst, bool* has_null). Thereby, the array type data can't be retrieved from underlying data file.

What You Expected?

Select array type data successfully.

How to Reproduce?

mysql> create table array_type_table (k1 INT, k2 Array<int>) duplicate key (k1) 
    -> distributed by hash(k1) buckets 1 properties('replication_num' = '1');
mysql> set enable_array_type = true;
mysql> set enable_vectorized_engine = true;
mysql> insert into array_type_table values (0, []), (1, [NULL]), (2, [1, 2, 3]), (3, [1, NULL, 3]); 
mysql> select * from array_type_table;
Empty set (0.03 sec)

Anything Else?

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

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