allisonwang-db commented on code in PR #44564:
URL: https://github.com/apache/spark/pull/44564#discussion_r1440170222
##########
python/pyspark/sql/datasource.py:
##########
@@ -403,3 +410,36 @@ def register(
assert sc._jvm is not None
ds =
sc._jvm.org.apache.spark.sql.execution.python.UserDefinedPythonDataSource(wrapped)
self.sparkSession._jsparkSession.dataSource().registerPython(name, ds)
+
+
+class CaseInsensitiveDict(UserDict):
+ """
+ A case-insensitive map of string keys to values.
+
+ This is used by Python data source options to ensure consistent case
insensitivity.
+
+ .. versionadded: 4.0.0
Review Comment:
Yea you are right. Users shouldn't directly use this (unless they want to
unit test the data source).
--
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]