Hive 与 ElasticSearch 的数据类型对照

ES 中的类型是 index/_mapping 中对应的数据类型,非 _source 里面数据的类型。

Hive typeElasticsearch type
void null
boolean boolean
tinyint byte
smallint short
int int
bigint long
double double
float float
string string
binary binary
timestamp date
struct map
map map
array array
union not supported (yet)
decimal string
date date
varchar string
char string


来源:

https://juejin.im/post/5c4d52476fb9a049b82ad73e

posted @ 2020-06-02 14:13  十点  阅读(2060)  评论(0编辑  收藏  举报