Which version are you using?

If you are using
Hive's ObjectInspectorFactory.getReflectionObjectInspector, you want to use
DateWritable and HiveDecimalWritable.

For even more control, you can create a TypeDescription and provide it via
setSchema to the OrcFile.WriterOptions. In ORC 1.1 you can also use
TypeDescription.fromString() to build TypeDescription from the type name.

.. Owen

On Mon, Aug 8, 2016 at 3:58 AM, praveen reddy <
[email protected]> wrote:

> Hi,
>
> i need to store Timestamp and Decimal datatype in ORC file. i declared
> them as Date and BigDecimal in java but when i save them in ORC file, they
> are storing as Struct type. i dont want to use Struct type.
>
> can you please help on what data type i need to choose in Java. i am kind
> of stuck on this.
>
> Thanks,
> Praveen
>

Reply via email to