Skip to main content
Converts a bitmap to a Base64-encoded string. This function is supported from v2.5.

Syntax

Parameters

bitmap: the bitmap to convert. This parameter is required. If the input value is invalid, an error is returned.

Return value

Returns a value of the VARCHAR type.

Examples

Example 1: Use this function with other bitmap functions.
Example 2: Convert each value in a BITMAP column into Base64-encoded strings.
  1. Create an Aggregate table page_uv where the AGGREGATE KEY is (page_id, visit_date). This table contains a BITMAP column visit_users whose values are to be aggregated.
  2. Insert data into this table.
  3. Convert each value in the visit_users column into a Base64-encoded string.