You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Sean Owen (JIRA)" <ji...@apache.org> on 2015/06/19 12:37:01 UTC

[jira] [Updated] (SPARK-7860) Spark SQL join two table with different datatype compare condition

     [ https://issues.apache.org/jira/browse/SPARK-7860?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sean Owen updated SPARK-7860:
-----------------------------
    Target Version/s:   (was: 1.3.1)

@guofeng don't set target version please. 1.3.1 was released already anyway. 
https://cwiki.apache.org/confluence/display/SPARK/Contributing+to+Spark

> Spark SQL join two table with different datatype compare condition
> ------------------------------------------------------------------
>
>                 Key: SPARK-7860
>                 URL: https://issues.apache.org/jira/browse/SPARK-7860
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 1.3.1
>         Environment: linux
>            Reporter: guofeng
>
> as below,Select expression's join condition is age compare with name,but age is Int,name is String,this codition dosen't make sense 
> // Apply a schema to an RDD of Java Beans and register it as a table.
>         DataFrame schemaPeople = sqlContext.createDataFrame(people, Person.class);
>         schemaPeople.registerTempTable("people");
>         DataFrame schemaPeople1 = sqlContext.createDataFrame(people, Person.class);
>         schemaPeople.registerTempTable("people1");
>         // SQL can be run over RDDs that have been registered as tables.
>         DataFrame teenagers = sqlContext.sql("SELECT a.name FROM people a join people1 b on a.name = b.age");



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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