如何通过DolphinDB Python API下载并保存BLOB数据到本地存储?

问题描述 投票:0回答:1

当我用PROTOCOL_PICKLE保存表时,出现错误:

Server response: 'pickle not support BLOB. IP[]. uuid[]. int128[]'

以下是我的脚本:

t = loadTable("dfs://GILDATA.LC_ANNOUNCEMENT", `data)
select * from t where companycode = '187163' and category = 4 order by infopubldate desc limit 100
//result from the API
￵{"emojiDesc":"","emojiUrl":"","hasSourceImage":false,"hashCode":17223055,"height":73,"srcPath":"/storage/emulated/0/Android/data/com.tencent.wework/files/imagecache/imagemsg2/5/5dbd98da0d44bff89f48882dfa38366d.0","thumbPath":"/storage/emulated/0/Android/data/com.tencent.wework/files/imagecache/imagemsg2/6/6815099d982e9c4fef058ea1c5494bbd.0","width":1130,"wwFileId":""}￰
python blob dolphindb
1个回答
0
投票

PROTOCOL_PICKLE 不支持某些特殊数据类型。您可以在创建会话时将其修改为 PROTOCOL_DDB(通过指定

enablePickle=False
protocol=keys.PROTOCOL_DDB
)。

© www.soinside.com 2019 - 2024. All rights reserved.