gt; }
>>
>>
>>
>> --
>> View this message in context:
>> http://apache-spark-developers-list.1001551.n3.nabble.com/right-outer-joins-on-Datasets-tp17542p17651.html
>> Sent from the Apache Spark Developers List mailing list archive at
>> Nabble.c
tring): String = jt match {
> ...
> case JAVA_INT => "-1"
> ...
> }
>
>
>
> --
> View this message in context:
> http://apache-spark-developers-list.1001551.n3.nabble.com/right-outer-joins-on-Datasets-tp17542p17651.html
> Sent fro
The reason for "-1" is that the default value for Integer is -1 if the value
is null
def defaultValue(jt: String): String = jt match {
...
case JAVA_INT => "-1"
...
}
--
View this message in context:
http://apache-spark-developers-list.1001551.n3.nabbl
I filed https://issues.apache.org/jira/browse/SPARK-15441
On Thu, May 19, 2016 at 8:48 AM, Andres Perez wrote:
> Hi all, I'm getting some odd behavior when using the joinWith
> functionality for Datasets. Here is a small test case:
>
> val left = List(("a", 1), ("a", 2), ("b", 3), ("c", 4)).
Hi all, I'm getting some odd behavior when using the joinWith functionality
for Datasets. Here is a small test case:
val left = List(("a", 1), ("a", 2), ("b", 3), ("c", 4)).toDS()
val right = List(("a", "x"), ("b", "y"), ("d", "z")).toDS()
val joined = left.toDF("k", "v").as[(String, Int)].