【发布时间】:2021-04-20 15:58:25
【问题描述】:
是否可以将 execution_options 添加到 kedro.extras.datasets.pandas.SQLQueryDataSet 中?
例如,我想将 stream_results=True 添加到连接字符串中。
engine = create_engine( “postgresql://postgres:pass@localhost/example” ) conn = engine.connect().execution_options(stream_results=True)
这是我的目录.yml
table_name:
type: pandas.SQLQueryDataSet
credentials: creds
sql: select * from table
load_args:
chunksize: 1000
关于如何使用 pandas.SQLQueryDataSet 添加/编辑 execution_options 的任何想法? 具体来说,stream_results=True。
【问题讨论】:
标签: pandas sqlalchemy kedro