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...@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.

Reply via email to