guofeng created SPARK-7860:
------------------------------

             Summary: 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to