Dragonliu2018 opened a new issue, #56878: URL: https://github.com/apache/doris/issues/56878
### Search before asking - [x] I had searched in the [issues](https://github.com/apache/doris/issues?q=is%3Aissue) and found no similar issues. ### Version master([a73b6e8](https://github.com/apache/doris/commit/a73b6e810422a26bf1b61a85f953e7f08928c138)) ### What's Wrong? All data is distributed to bucket 0 when using `hash(bitmap col)` as distribution key, as follows: ```sql -- 创建测试表 CREATE TABLE test_bitmap1 ( id INT, bmp BITMAP ) DISTRIBUTED BY HASH(bmp) BUCKETS 2 PROPERTIES ("replication_num" = "1"); -- 插入测试数据 INSERT INTO test_bitmap1 VALUES (1, bitmap_from_string('1,2,3')), (2, bitmap_from_string('4,5,6')), (3, bitmap_from_string('7,8,9')), (4, bitmap_from_string('10,11,12')), (5, bitmap_from_string('13,14,15')), (6, bitmap_from_string('16,17,18')); -- 查看分布情况 mysql> SHOW DATA SKEW FROM test_bitmap1; +---------------+-----------+-------------+-------------+------------------------------------------------------------------------------------------------------+---------+ | PartitionName | BucketIdx | AvgRowCount | AvgDataSize | Graph | Percent | +---------------+-----------+-------------+-------------+------------------------------------------------------------------------------------------------------+---------+ | test_bitmap1 | 0 | 6 | 532 | >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> | 100.00% | | test_bitmap1 | 1 | 0 | 0 | | 00.00 % | +---------------+-----------+-------------+-------------+------------------------------------------------------------------------------------------------------+---------+ 2 rows in set (0.00 sec) ``` ### What You Expected? The data will be distributed to different buckets according to the hash value. ### How to Reproduce? _No response_ ### Anything Else? _No response_ ### Are you willing to submit PR? - [x] Yes I am willing to submit a PR! ### Code of Conduct - [x] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct) -- 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. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
