question: need to keep consistent with jdbccolumn.columnscale concode_field_sep PlaceHolder placeHolder concode_field_sep void validateParameter concode_elem_sep DecimalTypeInfo getDecimalTypeForPrimitiveCategory concode_elem_sep int getPrecisionForType concode_elem_sep TypeInfo getDecimalTypeForPrimitiveCategories concode_elem_sep HiveDecimal enforcePrecisionScale concode_elem_sep HiveDecimalWritable enforcePrecisionScale
target: int function ( PrimitiveTypeInfo arg0 ) { switch ( arg0 . getPrimitiveCategory ( ) ) { case DECIMAL : return ( ( DecimalTypeInfo ) arg0 ) . scale ( ) ; case FLOAT : return 7 ; case DOUBLE : return 15 ; case BYTE : case SHORT : case INT : case LONG : case VOID : return 0 ; default : return HiveDecimal . MAX_SCALE ; } }