You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@pig.apache.org by chethan <ch...@gmail.com> on 2012/02/21 14:24:42 UTC

Append a variable value into string of hbasestorage func

Hi,

I want to append the variable value to the string that is going for input,
below are the command.

result = load 'hbase://sample_names' using
org.apache.pig.backend.hadoop.hbase.HBaseStorage('cf:fname','-loadKey true
-gt 1 -lt 3') as (id:chararray);
user_links = load 'hbase://sample_names' using
org.apache.pig.backend.hadoop.hbase.HBaseStorage('cf:fname','-loadKey true
-gt + result.id') as (name:chararray);

result.id is a scalar value and i want to pass that value for comparison
into the HBaseStorage func ( -gt value).
Please help me passing that value for the comparison.