Hive 与 ElasticSearch 的数据类型对照
ES 中的类型是
index/_mapping中对应的数据类型,非_source里面数据的类型。
| Hive type | Elasticsearch 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
诸业皆是自作自受,休咎祸福,尽从心生。

浙公网安备 33010602011771号