About measure in carbon

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

About measure in carbon

cenyuhai
Hi, all:
    I find the following codes in carbon CarbonCommonConstans.java. What does these measures mean?    Can I add a type for SHORT_VALUE_MEASURE = 's' ?





/**
 * DOUBLE_VALUE_MEASURE
 */
public static final char SUM_COUNT_VALUE_MEASURE = 'n';
/**
 * BYTE_VALUE_MEASURE
 */
public static final char BYTE_VALUE_MEASURE = 'c';
/**
 * BIG_DECIMAL_MEASURE
 */
public static final char BIG_DECIMAL_MEASURE = 'b';

/**
 * BIG_INT_MEASURE
 */
public static final char BIG_INT_MEASURE = 'l';
Reply | Threaded
Open this post in threaded view
|

Re: About measure in carbon

ravipesala
Hi,

These constants are used for converting data to respective datatype while
loading into carbondata. It is not required for short or int type as we
store as bigint.

Regards,
Ravi

On 4 December 2016 at 12:40, Sea <[hidden email]> wrote:

> Hi, all:
>     I find the following codes in carbon CarbonCommonConstans.java. What
> does these measures mean?    Can I add a type for SHORT_VALUE_MEASURE = 's'
> ?
>
>
>
>
>
> /**
>  * DOUBLE_VALUE_MEASURE
>  */
> public static final char SUM_COUNT_VALUE_MEASURE = 'n';
> /**
>  * BYTE_VALUE_MEASURE
>  */
> public static final char BYTE_VALUE_MEASURE = 'c';
> /**
>  * BIG_DECIMAL_MEASURE
>  */
> public static final char BIG_DECIMAL_MEASURE = 'b';
>
> /**
>  * BIG_INT_MEASURE
>  */
> public static final char BIG_INT_MEASURE = 'l';




--
Thanks & Regards,
Ravi
Reply | Threaded
Open this post in threaded view
|

Re: About measure in carbon

manishgupta88
Hi Ravi,

Currently we are using hive parser to parse carbon create table DDL. Hive does not support short datatype instead it supports short and byte with a different name as smallInt(16 bit) and tinyInt(8 bit) data types. But in carbon we do not support these datatypes.

Do we need to handle these datatypes in carbon?. If yes then I can create a jira for this issue and track this feature.

Regards
Manish Gupta