Adding execution_options to kedro.extras.datasets.pandas.SQLQueryDataSet
See original GitHub issueDescription
Is it possible to add execution_options to kedro.extras.datasets.pandas.SQLQueryDataSet?
For example, I would like to add stream_results=True to the connection string.
engine = create_engine(
"postgresql://postgres:pass@localhost/example"
)
conn = engine.connect().execution_options(stream_results=True)
Context
This article https://pythonspeed.com/articles/pandas-sql-chunking/ displays that its helpful to read large amounts of data using pandas with stream_results. I would like to use this method with SQLQueryDataSet.
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (5 by maintainers)
Top Results From Across the Web
Adding execution_options to kedro.extras.datasets.pandas ...
Is it possible to add execution_options to kedro.extras.datasets.pandas.SQLQueryDataSet? For example, I would like to add stream_results=True to ...
Read more >kedro.extras.datasets.pandas.SQLQueryDataSet
Example adding a catalog entry with YAML API: ... from kedro.extras.datasets.pandas import SQLQueryDataSet import pandas as pd data = pd.
Read more >Source code for kedro.extras.datasets.pandas.sql_dataset
Source code for kedro.extras.datasets.pandas.sql_dataset ... DataFrame]): """``SQLQueryDataSet`` loads data from a provided SQL query. It uses ``pandas.
Read more >kedro.extras.datasets.pandas.SQLQueryDataSet
SQLQueryDataSet loads data from a provided SQL query. ... from kedro.extras.datasets.pandas import SQLQueryDataSet import pandas as pd data = pd.
Read more >Source code for kedro.extras.datasets.pandas.sql_dataset
Source code for kedro.extras.datasets.pandas.sql_dataset ... Example adding a catalog entry with `YAML API <https://kedro.readthedocs.io/en/stable/05_data/\ ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

For visibility, this was also asked on SO: https://stackoverflow.com/questions/67182358/adding-stream-results-true-execution-options-to-kedro-extras-datasets-pandas-s/67182708#67182708
Hello! I see that this issue received no contribution so far. I am preparing a PR, will submit soon.