Hive 将无法识别查询中第二个条件中的列名

Hive will not recognize column name in the 2nd condition in the query

我运行以下查询得到如下错误。请查看该错误消息提到它认为不存在的列名称(平台)。奇怪。

hive -S -e 'select * from devices.device_app_action where ds= '20160511' 
AND platform= 'ios' limit 3;'

FAILED: SemanticException [Error 10004]: Line 1:73 Invalid table alias or column reference 'ios': (possible column names are: duid, id, dt, app, platform, app_level, tier1, tier2, tier3, tier4, tier5, tier6, first_geo, first_v, first_lang, total_events, min_ats, max_ats, ds)

它告诉我列平台不存在并且它在列表中

您是否必须将查询用正确的引号括起来

'select * from devices.device_app_action where ds= "20160511" AND platform= "ios" limit 3;'