Skip to content

Commit 3e3f57f

Browse files
committed
fix: add explanatory comment for schema in Connect xml handler
1 parent 71aaa3e commit 3e3f57f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

python/pyspark/sql/connect/readwriter.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -443,6 +443,8 @@ def xml(
443443
from pyspark.sql.connect.dataframe import DataFrame
444444

445445
if isinstance(path, DataFrame):
446+
# Schema must be set explicitly here because the DataFrame path
447+
# bypasses load(), which normally calls self.schema(schema).
446448
if schema is not None:
447449
self.schema(schema)
448450
return self._df(

0 commit comments

Comments
 (0)