Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/309.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/jenkins/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python Dask:从其他用户读取sql表_Python_Sqlalchemy_Dask_Cx Oracle - Fatal编程技术网

Python Dask:从其他用户读取sql表

Python Dask:从其他用户读取sql表,python,sqlalchemy,dask,cx-oracle,Python,Sqlalchemy,Dask,Cx Oracle,我在Python中使用dask从已建立的连接中读取SQL表(我使用cx\u Oracle,sqlalchemy)。我自己的表随时可用,但我不知道如何从其他用户那里访问提供给我的表 在SQL本身中,我只会使用其他用户引用该表。他们的\u表。但是,对于dask: import dask.dataframe as dd example_table = dd.read_sql_table("other_user.their_table", connstr, "idxcolumn") 不起作用(

我在Python中使用
dask
从已建立的连接中读取SQL表(我使用
cx\u Oracle
sqlalchemy
)。我自己的表随时可用,但我不知道如何从其他用户那里访问提供给我的表

在SQL本身中,我只会使用
其他用户引用该表。他们的\u表
。但是,对于
dask

import dask.dataframe as dd    
example_table = dd.read_sql_table("other_user.their_table", connstr, "idxcolumn")

不起作用(“没有这样的表”)。您知道如何访问这些表吗?

Dask dataframe的read_sql_table方法使用Pandas提供的相同方法。我建议先尝试一下熊猫,以确保它能起作用。如果没有,那么我建议你重新提交一个类似的问题,并附上熊猫标签。它们的覆盖面更广。

您是否尝试过
dd.read\u sql\u table(“他们的表”,connstr,“idxcolumn”,schema=“其他用户”)
谢谢,这个简单的解决方案满足了我的要求:)如果您将其作为答案发布,我将接受它。