spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ye Xianjin <advance...@gmail.com>
Subject Re: Set comparison
Date Tue, 17 Jun 2014 02:28:32 GMT
If you want string with quotes, you have to escape it with '\'. It's exactly what you did in
the modified version.

Sent from my iPhone

> On 2014年6月17日, at 5:43, SK <skrishna.id@gmail.com> wrote:
> 
> In Line 1, I have expected_res as a set of strings with quotes. So I thought
> it would include the quotes during comparison.
> 
> Anyway I modified expected_res = Set("\"ID1\"", "\"ID2\"", "\"ID3\"") and
> that seems to work.
> 
> thanks.
> 
> 
> 
> --
> View this message in context: http://apache-spark-user-list.1001560.n3.nabble.com/Set-comparison-tp7696p7699.html
> Sent from the Apache Spark User List mailing list archive at Nabble.com.

Mime
View raw message