Details
-
Sub-task
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
4.0.0
Description
Data source options are stored as a `CaseInsensitiveStringMap` in Scala, however, its behavior is inconsistent in Python:
class MyDataSource(DataSource): def __init__(self, options): self.api_key = options.get("API_KEY") # <- This is None spark.read.format(..).option("API_KEY", my_key).load(...)
Currently, options will not have this "API_KEY" as everything is converted to lowercase on the Scala side. This can be confusing to users.
Attachments
Issue Links
- links to