Cannot insert into target table because column number/types are differen
运行一个sql,报如下错误
FAILED: SemanticException [Error 10044]: Line 1:23 Cannot insert into target table because column number/types are different ''2019-09-01'': Table insclause-0 has 2 columns, but query has 3 columns.
首先保证sql是没有错误的,因为该sql是别人写好的在生产环境运行的。
解决办法: set hive.exec.dynamici.partition=true;开启动态分区即可
Cannot insert into target table because column number/types are differen相关推荐
- target table has x column(s) but the inserted data has y column(s), including z partition column(s
hive表想使用动态分区的方法,insert overwrite 的时候,必须把动态分区字段放在select 的字段最后面.好多中文帖子写的都不对!坑人 On the other hand, if y ...
- Cannot insert explicit value for identity column in table xxx when IDENTITY_INSERT is set to OFF
Cannot insert explicit value for identity column in table 'Login' when IDENTITY_INSERT is set to OFF ...
- v$lock之alter table drop column与alter table set unused column区别系列五
背景 之前文章: http://blog.itpub.net/9240380/viewspace-1814709/,涉及过如何删除表的某列,本文我们讨论下不同的删除表列语法参数,持锁模式的不同,便 ...
- You can't specify target table for update in FROM clause
今天使用mysql,写出一个sql语句: update service_re set is_deleted=0 where id=(select id from service_re where p_ ...
- You can't specify target table '表名' for update……
2019独角兽企业重金招聘Python工程师标准>>> 建表sql DROP TABLE IF EXISTS `car`; CREATE TABLE `car` (`id` int( ...
- mysql: you can't specify target table 问题解决
首先创建一个表: CREATE TABLE `t1` ( `id` INT(11) NULL DEFAULT NULL, `name` VARCHAR(20) NULL DEFAULT NULL ) ...
- Mysql You can‘t specify target table ‘表名‘ for update in FROM clause错误解决方案
Mysql You can't specify target table '表名' for update in FROM clause错误解决方案 测试表结构及测试数据 1. 更新 code 开始以 ...
- 记录一个多表查询的问题 #1093 - You can‘t specify target table ‘xxx‘ for update in FROM clause
SQL里面,多表查询比较常见,用法也比较简单 可以是 SELECT ood.oodId, ood.status, ood.userId, orders.createdAt FROM ood, orde ...
- Mysql语句提示You can't specify target table 'XXX' for update in FROM clause解决方案
错误提示:You can't specify target table 'XXX' for update in FROM clause 不能从子句中指定更新表的目标表"XXX" 原 ...
最新文章
- Windows的端口列表(转载)
- 软件分发、补丁推送排错
- 进行xlsx 复制一行_利用Phyton对Excel数据进行查错
- 第18届浙江大学校赛 Mergeable Stack
- 阿波罗配置中心(apollo)的个人看法
- 使用JsonConfig控制JSON lib序列化
- TRANSACTIONAL TEXT INDEX全文索引可能消耗大量PGA内存
- linux 脚本加密工具下载,linux truecrypt 加密工具
- win10 文件夹背景 win10教程
- linux多线程编程书籍推荐:linux大牛之路从这几本书開始总结
- Spring Bean生命周期,好像人的一生。。
- 思维挑战6:奔跑的小人
- jsp返回上一个页面并刷新
- strtoupper() 函数
- 【wpf】Page的Unloaded事件
- 世界先进制造业十大趋势
- 服务器部署基于chatgpt的服务
- Kubernetes上的有状态工作负载迎来转折点
- 202112-3 登机牌条码(50分)不知道错哪了
- 【新年第一篇博客】自己完成的第一款游戏 FlappyBird
热门文章
- 微型计算机系统概述,第1章微型计算机系统概述
- iOS 打破沙盒限制 处理其他App的Office等文件(上传、下载、预览)
- ActiveMQ WebConsole的一些参数
- Kivy Android开发教程之 开始构建 Kivy 跨平台应用程序(环境搭建含程序源码)
- keybd_event 使用方法
- raid0、raid1、raid5、raid10简介
- 学习SCRATCH制作迷宫小游戏
- 托盘区图标操作(NOTIFYICONDATA)
- 信息安全技术—实验四:Ip包监视程序实现
- Android应用篇 - 6.0 到 9.0 的版本适配