Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 0 additions & 14 deletions kubeflow/spark/backends/kubernetes/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,20 +121,6 @@ def _create_session(
options: Optional[list] = None,
) -> SparkConnectInfo:
"""Create a new SparkConnect session (INTERNAL USE ONLY)."""
# Validate input types
if resources_per_executor is not None and not isinstance(resources_per_executor, dict):
raise TypeError(
f"resources_per_executor must be a dict, got {type(resources_per_executor)}"
)
if spark_conf is not None and not isinstance(spark_conf, dict):
raise TypeError(f"spark_conf must be a dict, got {type(spark_conf)}")
if num_executors is not None and not isinstance(num_executors, int):
raise TypeError(f"num_executors must be an int, got {type(num_executors)}")
if driver is not None and not isinstance(driver, Driver):
raise TypeError(f"driver must be a Driver instance, got {type(driver)}")
if executor is not None and not isinstance(executor, Executor):
raise TypeError(f"executor must be an Executor instance, got {type(executor)}")

# Extract Name option if present, or auto-generate
name, filtered_options = self._extract_name_option(options)

Expand Down
Loading