liu391447823 edited a comment on issue #6875: URL: https://github.com/apache/incubator-doris/issues/6875#issuecomment-946741735
1.bitmapSubsetLimit Creates a subset of bitmap with n elements taken between range_start and cardinality_limit. Syntax `bitmapSubsetLimit(bitmap, range_start, cardinality_limit)` Arguments - bitmap – Bitmap object. - range_start – The subset starting point. - cardinality_limit – The subset cardinality upper limit. Returned value The subset. Example Query: `SELECT bitmapToArray(bitmapSubsetLimit(bitmapBuild([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,100,200,500]), toUInt32(30), toUInt32(200))) AS res;` Result: `┌─res───────────────────────┐ │ [30,31,32,33,100,200,500] │ └───────────────────────────┘ ` -- 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]
