Github user cloud-fan commented on a diff in the pull request:

    https://github.com/apache/spark/pull/14309#discussion_r72180296
  
    --- Diff: sql/core/src/test/scala/org/apache/spark/sql/DataFrameSuite.scala 
---
    @@ -896,6 +896,19 @@ class DataFrameSuite extends QueryTest with 
SharedSQLContext {
         checkError(df("`a.b`.c.`d"))
       }
     
    +  test("SPARK-11977: Support accessing a column contains '.' without 
backticks") {
    +    val df = sparkContext.parallelize(
    +      (1, 2) :: (3, 4) ::  Nil).toDF("test.column1", "test.column.2")
    +    checkAnswer(df.select("test.column1"), Seq(Row(1), Row(3)))
    --- End diff --
    
    This is a behaviour change, users may expect to see an analyse failure 
here. cc @rxin Do we want this feature?
    
    Personally I'd like to have a new function(similar to `col`, but resolves 
the column by the given name directly) instead of changing the semantic of 
`select`


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