Skip to content
This repository has been archived by the owner on May 20, 2021. It is now read-only.

Airpal don't support decimal type of column #232

Open
adminleh opened this issue Jan 26, 2019 · 0 comments
Open

Airpal don't support decimal type of column #232

adminleh opened this issue Jan 26, 2019 · 0 comments

Comments

@adminleh
Copy link

as title, if hive table includes decimal type column, don't show columns of table.
eg:
CREATE TABLE test2(
id int,
name string,
pric decimal(19,4)
)
when selecting the table test2, and show nothing in columns list.
log file exception as like:

ERROR [2019-01-26 13:33:30,003] io.dropwizard.jersey.jackson.JsonProcessingExceptionMapper: Unable to serialize or deserialize the specific type
! java.lang.IllegalArgumentException: ParameterKind is [LONG] but expected [NAMED_TYPE]
! at com.facebook.presto.client.ClientTypeSignatureParameter.getValue(ClientTypeSignatureParameter.java:84)
! at com.facebook.presto.client.ClientTypeSignatureParameter.getNamedTypeSignature(ClientTypeSignatureParameter.java:101)
! at com.facebook.presto.client.ClientTypeSignatureParameter$Access4JacksonDeserializer3d2f4ecd.objectGetter(com/facebook/presto/client/ClientTypeSignatureParameter$Access4JacksonDeserializer.java)
! at com.fasterxml.jackson.module.afterburner.ser.ObjectMethodPropertyWriter.serializeAsField(ObjectMethodPropertyWriter.java:45)
! at com.fasterxml.jackson.databind.ser.std.BeanSerializerBase.serializeFields(BeanSerializerBase.java:678)
! ... 90 common frames omitted
! Causing: com.fasterxml.jackson.databind.JsonMappingException: ParameterKind is [LONG] but expected [NAMED_TYPE] (through reference chain: com.google.common.collect.RegularImmutableList[2]->com.airbnb.airpal.presto.hive.HiveColumn["typeSignature"]->com.facebook.presto.client.ClientTypeSignature["arguments"]->java.util.UnmodifiableRandomAccessList[0]->com.facebook.presto.client.ClientTypeSignatureParameter["namedTypeSignature"])
! at com.fasterxml.jackson.databind.JsonMappingException.wrapWithPath(JsonMappingException.java:339)
! at com.fasterxml.jackson.databind.JsonMappingException.wrapWithPath(JsonMappingException.java:299)
! at com.fasterxml.jackson.databind.ser.std.StdSerializer.wrapAndThrow(StdSerializer.java:342)
! at com.fasterxml.jackson.databind.ser.std.BeanSerializerBase.serializeFields(BeanSerializerBase.java:686)
! at com.fasterxml.jackson.databind.ser.BeanSerializer.serialize(BeanSerializer.java:157)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant