【发布时间】:2017-06-18 20:34:14
【问题描述】:
我在 hive 表中有一个复杂的数据类型列,它是结构,在结构内部我有十进制数据类型。当我对另一个表进行插入覆盖操作时,我想将此 struct(decimal(10,0)) 转换为 struct(double) 或 struct(float)。我该如何实现这一点,因为当我尝试它给我一个错误时-
FAILED: SemanticException [Error 10044]: Line 1:23 Cannot insert into
target table because column number/types are different 'avro_poc_orc_test': Cannot convert column 3 from struct<latitude:decimal(28,2),longitude:decimal(19,3)> to struct<latitude:double,longitude:double>.
是否可以将复杂数据类型转换为另一个复杂数据类型?
【问题讨论】: