sassoftware / sassoftware/python-swat
no data limit when using to_frame
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 159
- Forks
- 65
- PR merge metrics
- No merged PRs in 30d
Description
When you use to_methods like to_csv, or any of the plotting methods on a CAS table the swat.options.cas.dataset.max_rows_fetched options limits to the default of 10,000. This makes sense to prevent you from pulling an extremely large table to the client.
However, when I use the to_frame method the option does not take effect and CAS attempts to transfer the entire CAS table to the client into a DataFrame. When the table is large it causes the following error:
SWATError: Unable to connect to any URL in the list
Which causes my CAS server to reset and removes all promoted CAS tables. Seems like the data limit should apply to the to_frame method as well.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the to_frame method and how it reads swat.options.cas.dataset.max_rows_fetched, then compare that path with to_csv or a plotting method where the limit already applies. Done means large CAS tables respect the configured row limit when converted to a DataFrame without transferring the entire table or triggering the reported server failure.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- data
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100