Skip to content

Commit 89eb0a1

Browse files
committed
Add DF ctx to init
1 parent e6a4059 commit 89eb0a1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

datafusion_ray/context.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,8 +206,8 @@ def execute_query_partition(
206206

207207

208208
class DatafusionRayContext:
209-
def __init__(self, num_workers: int = 1):
210-
self.ctx = Context(num_workers)
209+
def __init__(self, df_ctx, num_workers: int = 1):
210+
self.ctx = Context(df_ctx)
211211
self.num_workers = num_workers
212212

213213
def register_csv(self, table_name: str, path: str, has_header: bool):

0 commit comments

Comments
 (0)