HyukjinKwon commented on code in PR #38673:
URL: https://github.com/apache/spark/pull/38673#discussion_r1024678857
##########
python/pyspark/sql/session.py:
##########
@@ -256,8 +256,12 @@ def config(
self._options[k] = v
elif map is not None:
for k, v in map.items(): # type: ignore[assignment]
+ if isinstance(v, bool):
+ v = "true" if v is True else "false"
self._options[k] = str(v)
else:
+ if isinstance(value, bool):
+ value = "true" if value is True else "false"
Review Comment:
Can you use `from pyspark.sql.utils import to_str`?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]