Python 使用Omnisci和Pymapd引发异常:查询输出缓冲区中的插槽用完
我目前正在使用Omnisci数据库,并且我继续遇到一些问题,其中我得到一个异常,表明数据库在查询输出缓冲区中的插槽已用完。我正在尝试运行以下SQL语句:Python 使用Omnisci和Pymapd引发异常:查询输出缓冲区中的插槽用完,python,sql,gpu,omniscidb,pymapd,Python,Sql,Gpu,Omniscidb,Pymapd,我目前正在使用Omnisci数据库,并且我继续遇到一些问题,其中我得到一个异常,表明数据库在查询输出缓冲区中的插槽已用完。我正在尝试运行以下SQL语句: DELETE FROM live_data WHERE ROWID NOT IN (SELECT MAX(ROWID) FROM live_data GROUP BY uuid, lane_num); 当表达到大约20000行大小时,我开始抛出异常。有没有不同的处理方法 异常堆栈跟踪 Traceback (most recent call l
DELETE FROM live_data WHERE ROWID NOT IN (SELECT MAX(ROWID) FROM live_data GROUP BY uuid, lane_num);
当表达到大约20000行大小时,我开始抛出异常。有没有不同的处理方法
异常堆栈跟踪
Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/pymapd/cursor.py", line 118, in execute
at_most_n=-1,
File "/usr/local/lib/python3.7/dist-packages/omnisci/thrift/OmniSci.py", line 1755, in sql_execute
return self.recv_sql_execute()
File "/usr/local/lib/python3.7/dist-packages/omnisci/thrift/OmniSci.py", line 1784, in recv_sql_execute
raise result.e
omnisci.thrift.ttypes.TOmniSciException: TOmniSciException(error_msg='Exception: Ran out of slots in the query output buffer')
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/***/collect/omni.py", line 50, in stream
self.con.execute(query_str)
File "/usr/local/lib/python3.7/dist-packages/pymapd/connection.py", line 390, in execute
return c.execute(operation, parameters=parameters)
File "/usr/local/lib/python3.7/dist-packages/pymapd/cursor.py", line 121, in execute
raise _translate_exception(e) from e
pymapd.exceptions.Error: Exception: Ran out of slots in the query output buffer