ELEMENT_AT (Map, Lakehouse v2)
Returns the value associated with a specified key in a map.
Analyze Syntax
Section titled “Analyze Syntax”func.element_at(get_column(table, 'map_col'), 'key')Analyze Examples
Section titled “Analyze Examples”func.element_at(MAP{'a':1,'b':2}, 'b')
┌───┐│ 2 │└───┘SQL Syntax
Section titled “SQL Syntax”ELEMENT_AT(<map_col>, 'key')SQL Examples
Section titled “SQL Examples”SELECT ELEMENT_AT(MAP{'a':1, 'b':2}, 'b');
┌───┐│ 2 │└───┘