FIELD (Lakehouse v2)
Returns the index position of a value in a list of arguments.
Analyze Syntax
Section titled “Analyze Syntax”func.field(<str>, <val1>, <val2>[, ...])Analyze Examples
Section titled “Analyze Examples”func.field('b', 'a', 'b', 'c')
┌───┐│ 2 │└───┘SQL Syntax
Section titled “SQL Syntax”FIELD(<str>, <val1>, <val2>[, ...])SQL Examples
Section titled “SQL Examples”SELECT FIELD('b', 'a', 'b', 'c');
┌───┐│ 2 │└───┘