PythonAPI:Failed to read response header from the socket with IO error type 1

RuntimeError: <Exception> in run: Failed to read response header from the socket with IO error type 1
请问一下大家遇到过这个报错吗?连接上远程服务器了,table.rows 也能返回数据,但是一做具体的sql查询就报这个错。

数据类型如下:

attachments-2023-09-49hjcZkx650d36fb1a321.png

请先 登录 后评论

1 个回答

veryOrdinary

pickle 协议不支持 decimal 需要改成 ddb 协议,可参考这个教程配置参数 https://github.com/dolphindb/api_python3/blob/master/README_CN_NEW/3_AdvancedOperations/3.1_DataTypeCasting/3.1.1_PROTOCOL_DDB.md

请先 登录 后评论