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;

 

相关文章:

  • 2021-12-06
  • 2023-04-06
  • 2021-12-19
  • 2021-05-29
  • 2021-09-19
  • 2022-12-23
  • 2021-07-16
  • 2021-12-10
猜你喜欢
  • 2022-12-23
  • 2021-06-15
  • 2021-04-25
  • 2022-12-23
  • 2022-01-07
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案