You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Terry Wang (JIRA)" <ji...@apache.org> on 2019/07/26 11:39:00 UTC

[jira] [Updated] (FLINK-13385) Align Hive data type mapping with FLIP-37

     [ https://issues.apache.org/jira/browse/FLINK-13385?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Terry Wang updated FLINK-13385:
-------------------------------
    Fix Version/s: 1.10.0
                   1.9.0

> Align Hive data type mapping with FLIP-37
> -----------------------------------------
>
>                 Key: FLINK-13385
>                 URL: https://issues.apache.org/jira/browse/FLINK-13385
>             Project: Flink
>          Issue Type: Bug
>          Components: Connectors / Hive
>            Reporter: Timo Walther
>            Assignee: Terry Wang
>            Priority: Blocker
>             Fix For: 1.9.0, 1.10.0
>
>
> By looking at the Hive data type mapping of:
> https://ci.apache.org/projects/flink/flink-docs-master/dev/table/catalog.html#data-type-mapping
> Based on the information available in:
> https://cwiki.apache.org/confluence/display/Hive/LanguageManual+Types
> It seems that the type are not mapped correctly. The following changes should be performed (indicated by {{>>...<<}}):
> {code}
> CHAR(p)	char(p)*
> VARCHAR(p)	varchar(p)**
> STRING	string
> BOOLEAN	boolean
> >>TINYINT<<	tinyint
> >>SMALLINT<<	smallint
> INT	int
> BIGINT	long
> FLOAT	float
> DOUBLE	double
> DECIMAL(p, s)	decimal(p, s)
> DATE	date
> TIMESTAMP_WITHOUT_TIME_ZONE	TIMESTAMP
> TIMESTAMP_WITH_TIME_ZONE	N/A
> TIMESTAMP_WITH_LOCAL_TIME_ZONE	N/A
> INTERVAL	>>INTERVAL?<<
> BINARY	>>N/A<<
> VARBINARY(p)	>>N/A<<
> >>BYTES		BINARY<<
> >>ARRAY<E>	ARRAY<E><<
> >>MAP<K, V>	MAP<K, V>* we support more than primitives<<
> ROW	struct
> MULTISET	N/A
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)