Configurable Query #459
-
Hi Guys.
USE-CASE: Profiling to use as a replacement for SQOOP to avoid interactions with HDFS |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @kepplertreet , currently this is the only way for us to automatically do the query partitioning. But you can manually specified the partitioned query by giving a list of sql queries, like this example: import connectorx as cx
postgres_url = "postgresql://username:password@server:port/database"
# a list of queries that result in the same schema, connectorx will issue them in parallel and concat their result
queries = ["SELECT * FROM lineitem WHERE PARTITION_FILTER_0",
...,
"SELECT * FROM lineitem WHERE PARTITION_FILTER_N"]
df = cx.read_sql(postgres_url, queries) |
Beta Was this translation helpful? Give feedback.
Hi @kepplertreet , currently this is the only way for us to automatically do the query partitioning. But you can manually specified the partitioned query by giving a list of sql queries, like this example: