hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jason Dere (JIRA)" <>
Subject [jira] [Commented] (HIVE-10616) TypeInfoUtils doesn't handle DECIMAL with just precision specified
Date Wed, 28 Jun 2017 21:33:00 GMT


Jason Dere commented on HIVE-10616:

A bit late to the dance here, but the behavior here is definitely odd, should be either
1) correctly parse decimal(precision)
2) raise an error because decimal(precision, scale) is required
Returning decimal(10,0) in this case is just wrong - if we do make a change, might as well
use [~tfriedr]'s patch. Do you mind adding a testcase to TestTypeInfoUtils for this?

> TypeInfoUtils doesn't handle DECIMAL with just precision specified
> ------------------------------------------------------------------
>                 Key: HIVE-10616
>                 URL:
>             Project: Hive
>          Issue Type: Bug
>          Components: Serializers/Deserializers
>    Affects Versions: 1.0.0
>            Reporter: Thomas Friedrich
>            Assignee: Thomas Friedrich
>            Priority: Minor
>         Attachments: HIVE-10616.1.patch
> The parseType method in TypeInfoUtils doesn't handle decimal types with just precision
specified although that's a valid type definition. 
> As a result, TypeInfoUtils.getTypeInfoFromTypeString will always return decimal(10,0)
for any decimal(<precision>) string. 

This message was sent by Atlassian JIRA

View raw message