Giter VIP home page Giter VIP logo

Comments (11)

apan-liu avatar apan-liu commented on June 16, 2024

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.

qinxuye avatar qinxuye commented on June 16, 2024

先升级试下。

from aliyun-odps-python-sdk.

apan-liu avatar apan-liu commented on June 16, 2024

恩,升级了。之前跑了两天,第3天报这个错误

from aliyun-odps-python-sdk.

qinxuye avatar qinxuye commented on June 16, 2024

把新的错误栈贴下。

from aliyun-odps-python-sdk.

apan-liu avatar apan-liu commented on June 16, 2024

最早是一次插入一行,效率感觉低。改成一次性插入后跑了2天就出这个问题

from aliyun-odps-python-sdk.

apan-liu avatar apan-liu commented on June 16, 2024

新的刚部署,等几天看看

from aliyun-odps-python-sdk.

apan-liu avatar apan-liu commented on June 16, 2024

升级最新的模块,跑了2天还是报这个错误
odps.models.table,line 565, in write
IndexError:list index out of range

from aliyun-odps-python-sdk.

qinxuye avatar qinxuye commented on June 16, 2024

贴全错误栈

from aliyun-odps-python-sdk.

qinxuye avatar qinxuye commented on June 16, 2024
564                    elif isinstance(arg, (list, tuple)):
565                        if isinstance(arg[0], Record):

所以你觉得会是什么错误呢,很显然你传进来的 list 里面是空的,这更新版本也没用啊

from aliyun-odps-python-sdk.

apan-liu avatar apan-liu commented on June 16, 2024

恩,我在看看吧,怎么会传入为空[]

from aliyun-odps-python-sdk.

qinxuye avatar qinxuye commented on June 16, 2024

本质上你可以写

[
  [0, 'a']
  [1, 'b']
]

这样一次性写入多条,应该有的没有数据写入。应该把这些过滤掉

from aliyun-odps-python-sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.