Comments (2)
Is this still an issue for you? Does the same thing happen on the latest version of dask or is it just 2023.11?
Also, what versions of pandas + sqlalchemy are in your environment?
from dask.
I´ve just tested against the latests versions :
dask:2024.4.1
pandas:2.2.2
sqla : 2.0.29
import pandas as pd
sql = """SELECT t1.NR_SEQL_SLCT_CPR
FROM ORANDPOW0000.SLCT_CPR_PRD_PCR t1
WHERE ROWNUM <= 1000"""
pd.read_sql(sql = sql, con=oracle.uri, index_col = 'nr_seql_slct_cpr')
import dask.dataframe as dd
sql = """SELECT t1.NR_SEQL_SLCT_CPR
FROM ORANDPOW0000.SLCT_CPR_PRD_PCR t1
WHERE ROWNUM <= 1000"""
dd.read_sql(sql = sql, con=oracle.uri, index_col = 'nr_seql_slct_cpr')
---------------------------------------------------------------------------
NoSuchTableError Traceback (most recent call last)
Cell In[15], [line 5](vscode-notebook-cell:?execution_count=15&line=5)
[1](vscode-notebook-cell:?execution_count=15&line=1) import dask.dataframe as dd
[2](vscode-notebook-cell:?execution_count=15&line=2) sql = """SELECT t1.NR_SEQL_SLCT_CPR
[3](vscode-notebook-cell:?execution_count=15&line=3) FROM ORANDPOW0000.SLCT_CPR_PRD_PCR t1
[4](vscode-notebook-cell:?execution_count=15&line=4) WHERE ROWNUM <= 1000"""
----> [5](vscode-notebook-cell:?execution_count=15&line=5) dd.read_sql(sql = sql, con=oracle.uri, index_col = 'nr_seql_slct_cpr')
File [c:\Users\fabio\AppData\Local\Programs\Python\Python311\Lib\site-packages\dask_expr\io\sql.py:7](file:///C:/Users/fabio/AppData/Local/Programs/Python/Python311/Lib/site-packages/dask_expr/io/sql.py:7), in read_sql(sql, con, index_col, **kwargs)
[4](file:///C:/Users/fabio/AppData/Local/Programs/Python/Python311/Lib/site-packages/dask_expr/io/sql.py:4) def read_sql(sql, con, index_col, **kwargs):
[5](file:///C:/Users/fabio/AppData/Local/Programs/Python/Python311/Lib/site-packages/dask_expr/io/sql.py:5) from dask.dataframe.io.sql import read_sql
----> [7](file:///C:/Users/fabio/AppData/Local/Programs/Python/Python311/Lib/site-packages/dask_expr/io/sql.py:7) df = read_sql(sql, con, index_col, **kwargs)
[8](file:///C:/Users/fabio/AppData/Local/Programs/Python/Python311/Lib/site-packages/dask_expr/io/sql.py:8) return from_legacy_dataframe(df)
File [c:\Users\fabio\AppData\Local\Programs\Python\Python311\Lib\site-packages\dask\dataframe\io\sql.py:394](file:///C:/Users/fabio/AppData/Local/Programs/Python/Python311/Lib/site-packages/dask/dataframe/io/sql.py:394), in read_sql(sql, con, index_col, **kwargs)
[361](file:///C:/Users/fabio/AppData/Local/Programs/Python/Python311/Lib/site-packages/dask/dataframe/io/sql.py:361) """
[362](file:///C:/Users/fabio/AppData/Local/Programs/Python/Python311/Lib/site-packages/dask/dataframe/io/sql.py:362) Read SQL query or database table into a DataFrame.
[363](file:///C:/Users/fabio/AppData/Local/Programs/Python/Python311/Lib/site-packages/dask/dataframe/io/sql.py:363)
(...)
[391](file:///C:/Users/fabio/AppData/Local/Programs/Python/Python311/Lib/site-packages/dask/dataframe/io/sql.py:391) read_sql_query : Read SQL query into a DataFrame.
[392](file:///C:/Users/fabio/AppData/Local/Programs/Python/Python311/Lib/site-packages/dask/dataframe/io/sql.py:392) """
[393](file:///C:/Users/fabio/AppData/Local/Programs/Python/Python311/Lib/site-packages/dask/dataframe/io/sql.py:393) if isinstance(sql, str):
--> [394](file:///C:/Users/fabio/AppData/Local/Programs/Python/Python311/Lib/site-packages/dask/dataframe/io/sql.py:394) return read_sql_table(sql, con, index_col, **kwargs)
[395](file:///C:/Users/fabio/AppData/Local/Programs/Python/Python311/Lib/site-packages/dask/dataframe/io/sql.py:395) else:
...
[1541](file:///C:/Users/fabio/AppData/Local/Programs/Python/Python311/Lib/site-packages/sqlalchemy/engine/reflection.py:1541) if _reflect_info.table_options:
NoSuchTableError: SELECT t1.NR_SEQL_SLCT_CPR
FROM ORANDPOW0000.SLCT_CPR_PRD_PCR t1
WHERE ROWNUM <= 1000
Output is truncated. View as a [scrollable element](command:cellOutput.enableScrolling?43003cc2-5504-4dc1-91ab-a6d2b9db8d10) or open in a [text editor](command:workbench.action.openLargeOutput?43003cc2-5504-4dc1-91ab-a6d2b9db8d10). Adjust cell output [settings](command:workbench.action.openSettings?%5B%22%40tag%3AnotebookOutputLayout%22%5D)...
from dask.
Related Issues (20)
- Add a `dask.array.sample` functionality mirroring `dask.dataframe.sample` with an optional `ignore_nan` argument
- Inconsistency in ddf.astype(Arrow Dict) HOT 1
- CI is Failing HOT 4
- ddf.drop is inconsistent when passed a set of columns HOT 4
- test_division_or_partition in test_sql is failing for pandas 3
- Sorting by a categorical column doesn't always work
- Use case focused docs pages HOT 2
- TypeError: can only concatenate str (not "traceback") to str
- ⚠️ Upstream CI failed ⚠️
- Add support for `pip install dask[jobqueue]` HOT 4
- Mean fails to compute for very large column of pyarrow type HOT 1
- Previously working time series resampling breaks in new version of Dask HOT 3
- When using PyArrow dtypes, aggregations create NaNs of unexpected type HOT 1
- Column with object dtype get converted to string when selecting the column HOT 1
- aggregate function that operates on vector(array of numeric) data
- Dask .head() returns error as .compute returns ok! HOT 2
- API docs missing for `read_csv`, `read_fwf` and `read_table` HOT 3
- New CI failure showing up in fsspec HOT 2
- Overlap with `new_axis` option is not trimmed correctly HOT 1
- ValueError: An error occurred while calling the read_csv method registered to the pandas backend HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dask.