在1.30.21.1版本中,Python API session 和 DBConnectionPool 新增 protocol 参数,目前已支持的参数选项包括 PROTOCOL_DDB、PROTOCOL_PICKLE、PROTOCOL_ARROW,其中默认使用 PROTOCOL_PICKLE。目前PROTOCOL_DDB和PROTOCOL_ARROW支持decimal,但是arrow返回的是arrow.Table不是DataFrame。所以您的session需要指定protocol=keys.PROTOCOL_DDB:
import dolphindb.settings as keys
s = ddb.session(protocol=keys.PROTOCOL_DDB)
此外,目前都不支持decimal arrayvector,普通的decimal列是支持的。