Hive中的ParseException [英] ParseException in Hive

查看:114
本文介绍了Hive中的ParseException的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在蜂巢中使用 UDF .但是当我尝试使用 userdate作为'unixtimeToDate'创建一个临时函数时,出现了此异常

I am trying to use a UDF in hive. But when I try to create a temporary function using  userdate as 'unixtimeToDate', I get this exception

hive> create temporary function userdate1 as 'unixtimeToDate';
FAILED: ParseException line 1:25 character ' ' not supported here
line 1:35 character ' ' not supported here

我不确定为什么不支持该字符.请给我一些指导.

I am not sure why the character is not supported. Could I get some guidance on this please.

推荐答案

这里的异常足够清楚,您的SQL中有一个错误.您的SQL中有一个全角空格.有关 Halfwidth_and_fullwidth_forms

The exception is clear enough here, you have an error in your SQL. You have a full width space in your SQL. More about Halfwidth_and_fullwidth_forms

hive> create temporary function userdate1 as 'unixtimeToDate';
                                        ^^^here, you have a full width space

这篇关于Hive中的ParseException的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆