HIVE-25230: Add position and occurrence to INSTR() (#2378) (Quanlong Huang, reviewed...
authorQuanlong Huang <huangquanlong@gmail.com>
Fri, 13 May 2022 01:14:58 +0000 (09:14 +0800)
committerGitHub <noreply@github.com>
Fri, 13 May 2022 01:14:58 +0000 (09:14 +0800)
commitedd36e5c810c920825551519100354fb6ed59afd
tree0e68d0236aa9d6461840f961bb5e781a1dbbb2d4
parentd30db8cbafba110f6519354df7504b36643a8e60
HIVE-25230: Add position and occurrence to INSTR() (#2378) (Quanlong Huang, reviewed by Zhihua Deng)
ql/src/java/org/apache/hadoop/hive/ql/udf/generic/GenericUDFInstr.java
ql/src/test/queries/clientnegative/udf_instr_wrong_args_len2.q [new file with mode: 0644]
ql/src/test/queries/clientnegative/udf_instr_wrong_occurrence.q [new file with mode: 0644]
ql/src/test/queries/clientpositive/udf_instr.q
ql/src/test/results/clientnegative/udf_instr_wrong_args_len.q.out
ql/src/test/results/clientnegative/udf_instr_wrong_args_len2.q.out [new file with mode: 0644]
ql/src/test/results/clientnegative/udf_instr_wrong_occurrence.q.out [new file with mode: 0644]
ql/src/test/results/clientnegative/udf_instr_wrong_type.q.out
ql/src/test/results/clientpositive/llap/udf_instr.q.out