Home > Database > Mysql Tutorial > 处理Hive中;分号字符

处理Hive中;分号字符

WBOY
Release: 2016-06-07 17:32:31
Original
1453 people have browsed it

分号是sql的结束符,在hql中亦如此,但是hive对分号的识别没有那么智能,如下:select concat(

分号是sql的结束符,在hql中亦如此,,但是hive对分号的识别没有那么智能,如下:

select concat(';','aa') from lhc limit 1;

FAILED: Parse Error: line 1:13 cannot recognize input near '' '' '' in function specification

可见,hql只要遇见分号则认识是语句的EOF。

解决如下

select concat('\073','aa')col from lhc limit 1;

col

;11

Hive 的详细介绍:请点这里
Hive 的下载地址:请点这里

相关阅读:

基于Hadoop集群的Hive安装

Hive内表和外表的区别

Hadoop + Hive + Map +reduce 集群安装部署

Hive本地独立模式安装

Hive学习之WordCount单词统计

linux

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template