You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@orc.apache.org by praveen reddy <pr...@gmail.com> on 2016/08/05 02:00:01 UTC

java type to ORC type

Hi,

what is the best way to save Date/Big Decimal java type  to ORC
DateTime/Decimal(10,2) using ORC writer? i am not using hive , but using
ORC java API to save as ORC format.

after going through documentation, saving as Java util.date, the type
stored in ORC as
struct<timestamp:struct<fasttime:bigint,cdate:struct<cachedyear:int,cachedfixeddatejan1:bigint,cachedfixeddatenextjan1:bigint>>,

and for java BigDecimal its
margin:struct<intval:struct<signum:int,mag:struct<>,bitcount:int,bitlength:int,lowestsetbit:int,firstnonzerointnum:int>

are they correct?

-Praveen