Github user mathieulongtin commented on the pull request:
https://github.com/apache/spark/pull/12494#issuecomment-212934930
Whether null is acceptable for a given data source's options is beside the
point. If I give bad options, I should get an exception, the same way I get an
exception if I give any other wrong value. For example, I get an exception if I
set the quote to "XYZ" with the csv datasource because it only accepts a single
character.
The PR I submitted was about allowing Python to do the same thing as Scala.
This brings one question, can you specify NULL in SQL, like this:
```
CREATE TABLE cars
USING com.databricks.spark.csv
OPTIONS (path "cars.csv", header "true", inferSchema "true", quote NULL)
```
If not, then we should disable it entirely so that SQL, Scala and Python
all can do the same thing.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]