You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Xiao Li (JIRA)" <ji...@apache.org> on 2016/10/07 23:15:20 UTC
[jira] [Commented] (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:comment-tabpanel&focusedCommentId=15556559#comment-15556559 ]
Xiao Li commented on SPARK-7860:
--------------------------------
This is a user error. The other system has the same behavior. Close it now. Thanks!
> 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