Comments (11)
with t.open_writer(partition='p_date=%s'% self.now_date_format,create_partition=True ) as writer:
writer.write(records)
这段出错了,升级到最新的opds模块是否能解决。
from aliyun-odps-python-sdk.
先升级试下。
from aliyun-odps-python-sdk.
恩,升级了。之前跑了两天,第3天报这个错误
from aliyun-odps-python-sdk.
把新的错误栈贴下。
from aliyun-odps-python-sdk.
最早是一次插入一行,效率感觉低。改成一次性插入后跑了2天就出这个问题
from aliyun-odps-python-sdk.
新的刚部署,等几天看看
from aliyun-odps-python-sdk.
升级最新的模块,跑了2天还是报这个错误
odps.models.table,line 565, in write
IndexError:list index out of range
from aliyun-odps-python-sdk.
贴全错误栈
from aliyun-odps-python-sdk.
564 elif isinstance(arg, (list, tuple)):
565 if isinstance(arg[0], Record):
所以你觉得会是什么错误呢,很显然你传进来的 list 里面是空的,这更新版本也没用啊
from aliyun-odps-python-sdk.
恩,我在看看吧,怎么会传入为空[]
from aliyun-odps-python-sdk.
本质上你可以写
[
[0, 'a']
[1, 'b']
]
这样一次性写入多条,应该有的没有数据写入。应该把这些过滤掉
from aliyun-odps-python-sdk.
Related Issues (20)
- 文档有个bug HOT 1
- OverflowError: Date older than 1928/01/01 and may contain errors. HOT 2
- [bug] could not convert string to float: '\r\n\r\n\r\n<!DOCTYPE html>\n<html HOT 1
- Setup odps.sql.hive.compatible=true on sqlalchemy queries HOT 1
- 'Column' object has no attribute 'join' HOT 1
- SAWarning: Dialect odps:rest will not make use of SQL compilation caching as it does not set the 'supports_statement_cache' attribute to ``True``. HOT 1
- OSError: [Errno 22] Invalid argument HOT 4
- udtf中无法读取zip资源 HOT 1
- 导入ODPS时发生错误OSError: [Errno 22] Invalid argument HOT 2
- 写数据时报错 AttributeError: 'memoryview' object has no attribute 'encode' HOT 1
- http.client.ResponseNotReady raised in 0.11.4 HOT 4
- bug in pyodps join
- 使用pyodps-pack打包第三方包的时候,加--exclude参数就会报错 HOT 2
- 本地使用pyodps包会报错:TypeError: Object of type bytes is not JSON serializable HOT 5
- Support sqlalchemy version 2 HOT 2
- 如何利用非docker模式打包依赖包 HOT 2
- 使用table.open_reader读到partition字段为None HOT 3
- 如何更新字段注释 HOT 1
- py3.11
- superset 3.x integration error HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aliyun-odps-python-sdk.