phoenix-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ravi Kiran <maghamraviki...@gmail.com>
Subject Re: TinyInt, SmallInt not supported in Pig Phoenix loader
Date Sat, 13 Feb 2016 17:46:07 GMT
Hi Anil,

   We do a mapping of PTintInt and PSmallInt to Pig DataType.INTEGER .
https://github.com/apache/phoenix/blob/master/phoenix-pig/src/main/java/org/apache/phoenix/pig/util/TypeUtil.java#L94
.  Can you please share the error you are seeing.

HTH

Ravi.

On Sat, Feb 13, 2016 at 3:16 AM, anil gupta <anilgupta84@gmail.com> wrote:

> Hi,
>
> We are using Pig-Phoenix loader to load data into a table. Initially, we
> created some columns as TinyInt and SmallInt in our Phoenix table. But, Pig
> does not have TinyInt and SmallInt datatypes, so we were forced to convert
> all TinyInt and SmallInt columns into INTEGER.
> Is there a way/trick we can still use TinyInt and SmallInt in Phoenix
> table while using Pig-Phoenix loader?
>
> If currently there is no way to do it, can we enhance Pig-Phoenix loader
> to support TinyInt and SmallInt?
>
> --
> Thanks & Regards,
> Anil Gupta
>

Mime
View raw message