HyukjinKwon commented on code in PR #44564:
URL: https://github.com/apache/spark/pull/44564#discussion_r1439975702
##########
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:
qq why should we have this as an API? Thought users won't create this
instance manually.
--
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]