LOCATE (Lakehouse v2)
Returns the position of the first occurrence of a substring in a string.
Analyze Syntax
Section titled “Analyze Syntax”func.locate(<substr>, <str>[, <pos>])Analyze Examples
Section titled “Analyze Examples”func.locate('or', 'hello world')
┌───┐│ 8 │└───┘SQL Syntax
Section titled “SQL Syntax”LOCATE(<substr>, <str>[, <pos>])SQL Examples
Section titled “SQL Examples”SELECT LOCATE('or', 'hello world');
┌───┐│ 8 │└───┘