Skip to main content

Documentation Index

Fetch the complete documentation index at: https://www.integrate.io/docs/llms.txt

Use this file to discover all available pages before exploring further.

Description

Transforms a hash map to a bag of hash maps where each map contains two keys: key and value.

Syntax

MapToBag(map_expression)

Examples

MapToBag(TOMAP('a',1,'b',2,'c',3)) returns a bag with the following items: [key#a,value#1],[key#b,value#2],[key#c,value#3]

Return value datatype

Bag

Impact of null value

If input is null, returns null.
Last modified on April 20, 2026