You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by thomastechs <gi...@git.apache.org> on 2016/02/04 17:29:44 UTC

[GitHub] spark pull request: [SPARK-13197][SQL] When trying to select from ...

GitHub user thomastechs opened a pull request:

    https://github.com/apache/spark/pull/11079

    [SPARK-13197][SQL] When trying to select from the data frame which contains the columns with . in it, it is throwing exception.

    When trying to select from the data frame which contains the columns with . in it, it is throwing exception.
    Added the fix in the select method to incorporate the selection of columns containing . in it

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/thomastechs/spark branch-13197-fix

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/11079.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #11079
    
----
commit f7235a23d843a4f21da226f5af76f30bcd0d28b5
Author: thomastechs <th...@tcs.com>
Date:   2016-02-04T16:23:13Z

    Update DataFrame.scala for the bug fix 13197
    
    Editing the select method to allow the select of columns with . in it.

commit 3482d277aca7b45ece562ad8baef7a86d00d4cfc
Author: thomastechs <th...@tcs.com>
Date:   2016-02-04T16:26:54Z

    Update DataFrameSuite.scala for testcases -SPARK-13197 fix
    
    Added testcases for SPARK-13197 fix - selecting the dataframe with columns containing . in it

----


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [SPARK-13197][SQL] When trying to select from ...

Posted by thomastechs <gi...@git.apache.org>.
Github user thomastechs commented on the pull request:

    https://github.com/apache/spark/pull/11079#issuecomment-180308818
  
    @hvanhovell  and @jayadevanmurali    We checked the source code change in the referenced PR@10943. That PR is resolving the similar issue in the drop scenario. But this current fix would be for the explicit select statements as stated in our bug.Also we double checked whether the fix @PR-10943 would resolve the select issue . But, it does not resolve this bug. So ,please let us know your comments.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [SPARK-13197][SQL] When trying to select from ...

Posted by hvanhovell <gi...@git.apache.org>.
Github user hvanhovell commented on the pull request:

    https://github.com/apache/spark/pull/11079#issuecomment-180014085
  
    I think the same problem is solved in: https://github.com/apache/spark/pull/10943


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #11079: [SPARK-13197][SQL] When trying to select from the data f...

Posted by HyukjinKwon <gi...@git.apache.org>.
Github user HyukjinKwon commented on the issue:

    https://github.com/apache/spark/pull/11079
  
    +1 for not a problem.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [SPARK-13197][SQL] When trying to select from ...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/11079#issuecomment-179932817
  
    Can one of the admins verify this patch?


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #11079: [SPARK-13197][SQL] When trying to select from the data f...

Posted by clockfly <gi...@git.apache.org>.
Github user clockfly commented on the issue:

    https://github.com/apache/spark/pull/11079
  
    @thomastechs 
    
    We should use `df.select("`a.c`")` to select a column with name "a.c".
    The reason is that we can df.select can be used to select a nested column, for example:
    
    ```
    scala> case class A(inner: Int)
    scala> val df = Seq((A(1), 2)).toDF("a", "b")
    scala> df.select("a.inner")
    res10: org.apache.spark.sql.DataFrame = [inner: int]
    
    scala> df2.select("a.inner").show()
    +-----+
    |inner|
    +-----+
    |    1|
    +-----+
    ```
    
    So, I think this is NOT a bug, current behavior of select is expected.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request #11079: [SPARK-13197][SQL] When trying to select from the...

Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:

    https://github.com/apache/spark/pull/11079


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org