Support Questions
Find answers, ask questions, and share your expertise

ERROR 1070: Could not resolve ENDSWITH using imports: [, org.apache.pig.builtin., org.apache.pig.impl.builtin.]

ERROR 1070: Could not resolve ENDSWITH using imports: [, org.apache.pig.builtin., org.apache.pig.impl.builtin.]

New Contributor
 

 

 

I am trying to use the ENDSWITH but throws me an error. The statements are below



emp_sales = load 'emp_sales.txt' USING PigStorage(',') as (id:int , name:chararray, age:int, salary:chararray, dept:chararray);



emp_endswith  = FOREACH emp_sales GENERATE (id, name), ENDSWITH(name, 'M');