Does this feature work with TextInputFormat?

hive> set hive.exec.rowoffset=true;
hive> SELECT INPUT__FILE__NAME, BLOCK__OFFSET__INSIDE__FILE,
ROW__OFFSET__INSIDE__BLOCK FROM hive_text WHERE line LIKE '%hive%'
limit 2;
OK
file:/user/hive/warehouse/hive_text/folder=docs/README.txt      2243    0
file:/user/hive/warehouse/hive_text/folder=docs/README.txt      3646    0
Time taken: 4.349 seconds

On Sun, Mar 25, 2012 at 7:19 PM, Ted Yu <yuzhih...@gmail.com> wrote:
> From VirtualColumn.java:
>   public static VirtualColumn ROWOFFSET = new
> VirtualColumn("ROW__OFFSET__INSIDE__BLOCK",
> (PrimitiveTypeInfo)TypeInfoFactory.longTypeInfo);
>
> Cheers
>
> On Sun, Mar 25, 2012 at 2:30 PM, Edward Capriolo <edlinuxg...@gmail.com>
> wrote:
>>
>> <property>
>>  <name>hive.exec.rowoffset</name>
>>  <value>false</value>
>>  <description>Whether to provide the row offset virtual
>> column</description>
>> </property>
>>
>> I know the others are INPUT__FILE__NAME and BLOCK_OFFSET.... Does
>> anyone know what this third columns is?
>>
>> Edward
>
>

Reply via email to