首页 > 解决方案 > 插入/值不支持 TOK_FUNCTION

问题描述

我正在尝试将数据插入表并收到错误 "Unable to create temp file for insert values expression of type TOK_FUNCTION not supported in insert/values"。我的表结构是:

create table test(nm string,file string,status string, start_ts timestamp,add_ts timestamp)

...当我尝试像这样将数据插入其中时会发生错误:

Insert into test values("bab","text","completed",CURRENT_TIMESTAMP,FROM_UNIXTIME(UNIX_TIMESTAMP('20210310.190541','yyyyMMDdd.HHmmss')));

什么是 TOK_FUNCTION 以及为什么上面的插入会引发错误?

标签: hadoophivehiveqlhadoop2

解决方案


推荐阅读