Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
3 tasks done
adonis0147 opened this issue Jun 10, 2022 · 0 comments · Fixed by #10065
Closed
3 tasks done

Comments

@adonis0147
Copy link
Contributor

adonis0147 commented Jun 10, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant