Skip to content

Commit ad83fc5

Browse files
committed
feat: Add optional display_config parameter to SessionContext constructor
1 parent ec7033a commit ad83fc5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

python/datafusion/context.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -571,6 +571,7 @@ def __init__(
571571
self,
572572
config: SessionConfig | None = None,
573573
runtime: RuntimeEnvBuilder | None = None,
574+
display_config: DataframeDisplayConfig | None = None,
574575
) -> None:
575576
"""Main interface for executing queries with DataFusion.
576577
@@ -594,7 +595,9 @@ def __init__(
594595
"""
595596
config = config.config_internal if config is not None else None
596597
runtime = runtime.config_internal if runtime is not None else None
597-
display_config = DataframeDisplayConfigInternal()
598+
display_config = (
599+
display_config.config_internal if display_config is not None else None
600+
)
598601
self.ctx = SessionContextInternal(config, runtime, display_config)
599602

600603
@classmethod

0 commit comments

Comments
 (0)