配置单元将无法识别查询中第二个条件中的列名

vxqlmq5t  于 2021-05-29  发布在  Hadoop
关注(0)|答案(1)|浏览(367)

我运行了下面的查询,得到了下面的错误。请注意,错误消息中提到了它认为不存在的列名(platform)。奇怪的。

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

失败:semanticexception[error 10004]:行1:73无效的表别名或列引用“ios”:(可能的列名有:duid、id、dt、app、platform、app\u level、tier1、tier2、tier3、tier4、tier5、tier6、first\u geo、first\u v、first\u lang、total\u events、min\u ats、max\u ats、ds)
它告诉我列平台不存在,它在列表中

arknldoa

arknldoa1#

您可能需要将查询用正确的引号括起来

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

相关问题