[英]Unable to fathom update count INSERT on billions of rows
I am running a Netezza SQL query that is creating a table from a select statement returning almost 8 billion rows. 我正在运行一个Netezza SQL查询,该查询从返回近80亿行的select语句创建表。 Here is the query:
这是查询:
CREATE TABLE
table1 AS
(
SELECT
column1
FROM
table2 qt
WHERE
qt.column1 = '2016-04-04'
UNION ALL
SELECT
column1
FROM
table3 qt
WHERE
qt.column1 = '2016-04-04'
)
The driver is throwing this error: 驱动程序抛出此错误:
org.springframework.jdbc.UncategorizedSQLException: SqlMapClient operation; uncategorized SQLException for SQL []; SQL state [UNDEFINED]; error code [0];
--- The error occurred while applying a parameter map.
--- Check the statement (update failed).
--- Cause: Unable to fathom update count INSERT 0 7779737732
Does anyone know what's causing this? 有谁知道是什么原因造成的?
I think you are running into a JDBC driver limitation. 我认为您遇到了JDBC驱动程序限制。 If you run a INSERT, UPDATE, CREATE AS SELECT via JDBC and the number of rows INSERTed, UPDATEd or CREATEd exceeds 2147483647, you will receive an error message similar to the following:
如果通过JDBC运行INSERT,UPDATE,CREATE AS SELECT,并且INSERTed,UPDATED或CREATEd的行数超过2147483647,则会收到类似于以下内容的错误消息:
Unable to fathom update count INSERT 0 5120000160
The above error message may be different given whether an INSERT, UPDATE or CREATE as SELECT and given the number of rows actually affected. 鉴于是将INSERT,UPDATE还是CREATE作为SELECT,并且鉴于实际受影响的行数,上述错误消息可能有所不同。 This is a limitation of JDBC specification itself.
这是JDBC规范本身的限制。
Thanks, Sanjit 谢谢,Sanjit
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.