hadoop - 插入/值不支持 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 以及为什么上面的插入会引发错误?
解决方案
推荐阅读
- android - 如何支持具有非标准 DPI 的屏幕
- swagger - 如何使用 OpenAPI/Swagger 定义数组项的排除类型?
- javascript - 递增到最大值,然后递减到最小值
- json - 基于 JSON 模式生成 JSON 有效负载以进行 API 有效负载验证
- ios - 如何在少数情况下包含额外属性的情况下创建枚举
- mysql - MySQL:带有数据复制的在线 DDL INPLACE 算法如何工作?
- flutter - 升级颤振后命令不起作用
- amazon-aurora - 使用 Attunity Replicate MSM 将数据从 RDS MySQL 迁移到 Azure Database for MySQL 时,迁移任务在“加载数据本地 infile”时失败
- office-js - 基于 Outlook Office JS 的加载项的 Windows Update 1903 中的重大更改
- perl - 图形魔术中的字体呈现不同