Github user squito commented on the issue:

    https://github.com/apache/spark/pull/17631
  
    this doesn't seem safe in general.  spark treats quotes as a valid part of 
the name, eg:
    
    ```scala
    scala> val df = sc.parallelize(1 to 10).map { x => (x, (x + 1).toLong, (x - 
1).toString)}.toDF("foo", "\"foo\"", "\"foo")
    scala> df.select("\"foo")
    res15: org.apache.spark.sql.DataFrame = ["foo: string]
    ```
    you could have conflicts if you removed the quotes (though I admit it would 
be pretty weird).  And then there are cases like only one quote, mismatched, 
etc., do you want to strip them all?
    
    I'm not really sure what Spark can do about this, but also not my area of 
expertise so I will defer to others.


---
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]

Reply via email to