简体   繁体   English

HIVE中MYSQL数据库的nvarchar位适合什么数据类型?

[英]What is appropriate data type for nvarchar, bit of MYSQL database to in HIVE?

I need to ingest data from mysql database to Hadoop by creating hive/impala tables. 我需要通过创建hive / impala表将数据从mysql数据库摄取到Hadoop。 I have nvarchar and bit data types in mysql, so what is most appropriate data types in HIVE/Impala to declare while crating hive table. 我在mysql中有nvarchar和bit数据类型,因此在创建蜂巢表时要声明的HIVE / Impala中最合适的数据类型是什么。 i am thinking of using string? 我正在考虑使用字符串?

You can use string and tinyint types in Hive/Impala. 您可以在Hive / Impala中使用stringtinyint类型。 both allows nulls. 两者都允许为空。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM