gpt4 book ai didi

hadoop - "expected StringLiteral"在 HIVE 中是什么意思?

转载 作者:可可西里 更新时间:2023-11-01 15:12:35 26 4
gpt4 key购买 nike

我不明白为什么 HIVE 在以下脚本中向我抛出错误:

use <output_db>

drop table if exists <new_tbl>;
create table <new_tbl> like <old_tbl>;

load data local inpath <directory> into table <new_tbl>;​

异常(exception)是:

FAILED: ParseException line 4:23 mismatched input '<directory>' expecting StringLiteral near 'inpath' in load statement

抱歉,如果这是一个初级问题。但是我已经从类似的 hql 语句中复制了它,但我找不到满意的答案。

最佳答案

看起来像这样:将数据本地 inpath 目录加载到表中

应该是:将数据本地 inpath 'directory' 加载到表中

用单引号括起来。

希望对您有所帮助...!!!

关于hadoop - "expected StringLiteral"在 HIVE 中是什么意思?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33905144/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com