hql只要遇见分号则认识是语句的EOF,所以对于分号,需要用“\“转义。

例如:

insert overwrite table  test_json_map
select '{"accountid":"1_:\;11"}', t.map_col  from t
where dt = '2017-08-08'
limit 1;

或者用”\073"替换“;"

select concat('\073','aa') col from lhc limit 1;

 

posted on 2017-08-15 16:14  凌度  阅读(1085)  评论(0编辑  收藏  举报