mysql - Hive : casting array<string> to array<int> in query -
i have 2 tables :
create table ( `1` array<string>); create table b ( `1` array<int>);
and want put table in table b (table b empty) :
insert table b select * a;
when doing following error :
failed: semanticexception [error 10044]: line 1:18 cannot insert target table because column number/types different 'b': cannot convert column 0 array<string> array<int>.
whereas not error if fields of types string
, int
.
is there way cast arrays ?
Comments
Post a Comment