Skip to main content

TO_VARIANT

Converts a value to VARIANT data type.

Syntax

TO_VARIANT( <expr> )

Examples

SELECT TO_VARIANT(TO_BITMAP('100,200,300'));

┌──────────────────────────────────────┐
│ to_variant(to_bitmap('100,200,300'))
├──────────────────────────────────────┤
[100,200,300]
└──────────────────────────────────────┘
Explore Databend Cloud for FREE
Low-cost
Fast Analytics
Easy Data Ingestion
Elastic Scaling
Try it today