kevinw66 commented on issue #42157:
URL: https://github.com/apache/doris/issues/42157#issuecomment-3017978873

   This is caused by when the bitmap type is `set`, the used container 
`phmap::flat_hash_set<T>` is an unordered_set, which doesn't guarantee the 
order during loop, so the base64 output can't be guaranteed to be consistent 
each time.
   
   
https://github.com/apache/doris/blob/297315657c6f8d6d55b066a587585336139334e5/be/src/util/bitmap_value.h#L1871-L1874
   
   The 
[document](https://doris.apache.org/docs/3.0/sql-manual/sql-functions/scalar-functions/bitmap-functions/bitmap-to-base64#return-value)
 has also point this out: `Due to the non-guaranteed order of elements in a 
bitmap, the generated Base64 string may not always be the same for the same 
content`.
   
   I'm not sure why we have this test case. In my opinion, the validation for 
base64 encoding of the specific type `set` should be removed.
   


-- 
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]

Reply via email to