0

我正在使用 Pig 脚本来列出 hbase 中的行。我可以使用 -gte 选项来获取大于某个值的行。但是,每当我使用 -lte(单独使用或与 -gte 配对)时,我都会得到零记录。

--this works returns many rows
LOAD 'hbase://TABLE' USING org.apache.pig.backend.hadoop.hbase.HBaseStorage('CF:I','-loadKey true -caster HBaseBinaryConverter -gte \\x00\\x00\x01\x2C') AS (product_id:bytearray);

--this returns 0 rows
--and there are rows that would be less than this value
LOAD 'hbase://TABLE' USING org.apache.pig.backend.hadoop.hbase.HBaseStorage('CF:I','-loadKey true -caster HBaseBinaryConverter -lte \\x00\\x00\x01\x2D') AS (product_id:bytearray);
4

0 回答 0