简体   繁体   English

Dask read_sql_table不返回任何数据

[英]Dask read_sql_table returns no data

I'm trying to get whole table into dask dataframe using read_sql_table method but for some reason I don't get any data in dataframe. 我正在尝试使用read_sql_table方法将整个表放入dask数据帧,但由于某种原因,我在数据帧中没有得到任何数据。 I've been struggling and googling for a bit with this. 我一直苦苦挣扎,谷歌搜索一下。 Do you guys know what might be the issue? 你们知道这可能是什么问题吗?

import dask.dataframe as dd
url = "oracle+cx_oracle://user:pass@server:port/?service_name=name"

df = dd.read_sql_table('my_table', url, index_col='first_columnid', schema='schema_name', head_rows=50)

嘿,事实证明,提供数量的分区解决了这个问题......

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Dask 中的 read_sql_table 返回 NoSuchTableError - read_sql_table in Dask returns NoSuchTableError Dask Dataframe read_sql_table返回TypeError - Dask Dataframe read_sql_table returns TypeError read_sql_table之后无法持久保存dask数据帧 - unable to persist dask dataframe after read_sql_table 如何使用 Dask 在 read_sql_table 中使用 sqlalchemy 表达式? - How to use sqlalchemy expression in read_sql_table using Dask? 在 Dask 中使用 read_sql_table 将时间戳分配为索引 - Assign timestamp as index with read_sql_table in Dask Dask + PostgreSQL read_sql_table:不正确的数据类型index_col - Dask + PostgreSQL read_sql_table: incorrect data type index_col 有没有办法在 dask read_sql_table 中将列设置为 null? - Is there a way to set columns to null within dask read_sql_table? Dask / Python:将read_sql_table中的索引列的char转换为int - Dask/Python: Converting char to int for index column in read_sql_table Dask 客户端 + read_sql_table:distributed.protocol.core - 关键 - 无法序列化 - Dask client + read_sql_table: distributed.protocol.core - CRITICAL - Failed to Serialize Dask read_sql_table引发错误AttributeError:'Connection'对象没有属性'_instantiate_plugins' - Dask read_sql_table throws error AttributeError: 'Connection' object has no attribute '_instantiate_plugins'
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM