无法识别“>”附近的输入',' “计数”在选择目标命令中使用 ret '64' 退出
我正在尝试执行下面的查询:
INSERT OVERWRITE DIRECTORY '${OUTPUT}/os_requests/' SELECT OS, '—>', COUNT(*) FROM cloudfront_logs WHERE DateLog BETWEEN '2014-07-05' AND '2014- 08-05' 按操作系统分组;
但我收到此错误:
FAILED: ParseException line 3:104无法识别“>”附近的输入',' 选择目标中的 'COUNT' 命令
每次都会返回 ret '64' 退出,如下所示。我已将文件另存为 .q 文件。
I am trying to execute the query below:
INSERT OVERWRITE DIRECTORY '${OUTPUT}/os_requests/' SELECT OS, ‘—>’, COUNT(*) FROM cloudfront_logs WHERE DateLog BETWEEN '2014-07-05' AND '2014-08-05' GROUP BY OS;
But i am getting this error:
FAILED: ParseException line 3:104 cannot recognize input near '>' ',' 'COUNT' in selection target Command exiting with ret '64'
returned every time that looks like this. I have the file saved as a .q file.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
请使用单引号 (
'
)。下面的 SQL 就可以工作。你的sql有反引号('
),它在sql中不起作用。Pls use single quote (
'
). Below SQL will work. Your sql has back quote(‘
) which wont work in sql.