PREHOOK: query: DESCRIBE FUNCTION locate PREHOOK: type: DESCFUNCTION POSTHOOK: query: DESCRIBE FUNCTION locate POSTHOOK: type: DESCFUNCTION locate(substr, str[, pos]) - Returns the position of the first occurance of substr in str after position pos PREHOOK: query: DESCRIBE FUNCTION EXTENDED locate PREHOOK: type: DESCFUNCTION POSTHOOK: query: DESCRIBE FUNCTION EXTENDED locate POSTHOOK: type: DESCFUNCTION locate(substr, str[, pos]) - Returns the position of the first occurance of substr in str after position pos Example: > SELECT locate('bar', 'foobarbar', 5) FROM src LIMIT 1; 7 PREHOOK: query: EXPLAIN SELECT locate('abc', 'abcd'), locate('ccc', 'abcabc'), locate('23', 123), locate(23, 123), locate('abc', 'abcabc', 2), locate('abc', 'abcabc', '2'), locate(1, TRUE), locate(1, FALSE), locate(CAST('2' AS TINYINT), '12345'), locate('34', CAST('12345' AS SMALLINT)), locate('456', CAST('123456789012' AS BIGINT)), locate('.25', CAST(1.25 AS FLOAT)), locate('.0', CAST(16.0 AS DOUBLE)), locate(null, 'abc'), locate('abc', null), locate('abc', 'abcd', null), locate('abc', 'abcd', 'invalid number') FROM src tablesample (1 rows) PREHOOK: type: QUERY POSTHOOK: query: EXPLAIN SELECT locate('abc', 'abcd'), locate('ccc', 'abcabc'), locate('23', 123), locate(23, 123), locate('abc', 'abcabc', 2), locate('abc', 'abcabc', '2'), locate(1, TRUE), locate(1, FALSE), locate(CAST('2' AS TINYINT), '12345'), locate('34', CAST('12345' AS SMALLINT)), locate('456', CAST('123456789012' AS BIGINT)), locate('.25', CAST(1.25 AS FLOAT)), locate('.0', CAST(16.0 AS DOUBLE)), locate(null, 'abc'), locate('abc', null), locate('abc', 'abcd', null), locate('abc', 'abcd', 'invalid number') FROM src tablesample (1 rows) POSTHOOK: type: QUERY STAGE DEPENDENCIES: Stage-0 is a root stage STAGE PLANS: Stage: Stage-0 Fetch Operator limit: -1 Processor Tree: TableScan alias: src Row Limit Per Split: 1 Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE Column stats: COMPLETE Select Operator expressions: 1 (type: int), 0 (type: int), 2 (type: int), 2 (type: int), 4 (type: int), 4 (type: int), 0 (type: int), 0 (type: int), 2 (type: int), 3 (type: int), 4 (type: int), 2 (type: int), 3 (type: int), null (type: int), null (type: int), 0 (type: int), 0 (type: int) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13, _col14, _col15, _col16 Statistics: Num rows: 500 Data size: 30000 Basic stats: COMPLETE Column stats: COMPLETE ListSink PREHOOK: query: SELECT locate('abc', 'abcd'), locate('ccc', 'abcabc'), locate('23', 123), locate(23, 123), locate('abc', 'abcabc', 2), locate('abc', 'abcabc', '2'), locate(1, TRUE), locate(1, FALSE), locate(CAST('2' AS TINYINT), '12345'), locate('34', CAST('12345' AS SMALLINT)), locate('456', CAST('123456789012' AS BIGINT)), locate('.25', CAST(1.25 AS FLOAT)), locate('.0', CAST(16.0 AS DOUBLE)), locate(null, 'abc'), locate('abc', null), locate('abc', 'abcd', null), locate('abc', 'abcd', 'invalid number') FROM src tablesample (1 rows) PREHOOK: type: QUERY PREHOOK: Input: default@src #### A masked pattern was here #### POSTHOOK: query: SELECT locate('abc', 'abcd'), locate('ccc', 'abcabc'), locate('23', 123), locate(23, 123), locate('abc', 'abcabc', 2), locate('abc', 'abcabc', '2'), locate(1, TRUE), locate(1, FALSE), locate(CAST('2' AS TINYINT), '12345'), locate('34', CAST('12345' AS SMALLINT)), locate('456', CAST('123456789012' AS BIGINT)), locate('.25', CAST(1.25 AS FLOAT)), locate('.0', CAST(16.0 AS DOUBLE)), locate(null, 'abc'), locate('abc', null), locate('abc', 'abcd', null), locate('abc', 'abcd', 'invalid number') FROM src tablesample (1 rows) POSTHOOK: type: QUERY POSTHOOK: Input: default@src #### A masked pattern was here #### 1 0 2 2 4 4 0 0 2 3 4 2 3 NULL NULL 0 0