correctly sql:
select c1.username,c1.real_name,nvl2(c2.username,'0','1') as total,c2.user_id,c2.nn from consignor c1
left outer join
(select user_id,username, json_get_object(extend_info,'$.kill') as nn from consignor
) c2
on c1.user_id=c2.user_id where c2.username is NULL;
incorrectly sql: At the same time,if i run this sql,impala-deamon crushing.
select c1.username,c1.real_name,nvl2(c2.username,'0','1') as total,c2.user_id,c2.nn from consignor c1
left outer join
(select user_id,username, json_get_object(extend_info,'$.kill') as nn from consignor
where json_get_object(extend_info,'$.kill')='false' ) c2
on c1.user_id=c2.user_id where c2.username is NULL;
error message : Could not connect to AvatarTest2:21050 (code THRIFTTRANSPORT): TTransportException('Could not connect to AvatarTest2:21050',)
avatartest is my computer's hostname
it seems like "json function" can not in where condition??
table data like this:
correctly sql: select c1.username,c1.real_name,nvl2(c2.username,'0','1') as total,c2.user_id,c2.nn from consignor c1 left outer join (select user_id,username, json_get_object(extend_info,'$.kill') as nn from consignor ) c2 on c1.user_id=c2.user_id where c2.username is NULL;
incorrectly sql: At the same time,if i run this sql,impala-deamon crushing.
select c1.username,c1.real_name,nvl2(c2.username,'0','1') as total,c2.user_id,c2.nn from consignor c1 left outer join (select user_id,username, json_get_object(extend_info,'$.kill') as nn from consignor where json_get_object(extend_info,'$.kill')='false' ) c2 on c1.user_id=c2.user_id where c2.username is NULL;
error message : Could not connect to AvatarTest2:21050 (code THRIFTTRANSPORT): TTransportException('Could not connect to AvatarTest2:21050',)
avatartest is my computer's hostname
it seems like "json function" can not in where condition??
BASE ON : CDH 14.2 HUE 3.9 IMPALA 2.11.0