1.报错现象
以下sql在hive中可以正常执行
select
`$eventappid` app_id,
case
when `$lib` = 'ios' then '1'
when `$lib` = 'Android' then '2'
when `$lib` = 'JavaScript' then '3'
when `$lib` = '小程序' then '4'
when `$lib` = '服务端' then '5'
when `$lib` = '其他' then '6'
else '0' end event_platform_id,
max(`$lib_version`) version,
min(time) access_time,
count(distinct event) access_event_count,
count(*) upload_data_count
from events
group by
`$eventappid`,
`$lib`
但是通过以下sql执行会报错。
hive -e
"use crumb_teye;
select
`$eventappid` app_id,
case
when `$lib` = 'ios' then '1'
when `$lib` = 'Android' then '2'
when `$lib` = 'JavaScript&#