分号是sql的结束符,在hql中亦如此,但是hive对分号的识别没有那么智能,如下:

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

FAILED: Parse Error: line 1:13 cannot recognize input near '<EOF>' '<EOF>' '<EOF>' in function specification

可见,hql只要遇见分号则认识是语句的EOF。

解决如下

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

col

;11

 

相关文章:

  • 2021-10-17
  • 2021-09-15
  • 2022-02-27
  • 2022-12-23
  • 2022-12-23
  • 2021-11-06
  • 2021-12-06
  • 2021-09-01
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-01-21
  • 2022-02-17
  • 2021-06-15
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案