Re: How does spark sql evaluate case statements?

2020-04-17 Thread kant kodali
s[3] /* literal */); > /* 067 */ continue; > /* 068 */ } > /* 069 */ > /* 070 */ project_caseWhenResultState_0 = (byte)(false ? 1 : 0); > /* 071 */ project_mutableStateArray_0[0] = ((UTF8String) > references[4] /* literal */); > /* 072 */ >

Re: How does spark sql evaluate case statements?

2020-04-16 Thread ZHANG Wei
Yeikel Sent: Wednesday, April 15, 2020 2:22 To: user@spark.apache.org Subject: Re: How does spark sql evaluate case statements? I do not know the answer to this question so I am also looking for it, but @kant maybe the generated code can help with this. -- Sent fro

Re: How does spark sql evaluate case statements?

2020-04-14 Thread Yeikel
I do not know the answer to this question so I am also looking for it, but @kant maybe the generated code can help with this. -- Sent from: http://apache-spark-user-list.1001560.n3.nabble.com/ - To unsubscribe e-mail:

How does spark sql evaluate case statements?

2020-04-06 Thread kant kodali
Hi All, I have the following query and I was wondering if spark sql evaluates the same condition twice in the case statement below? I did .explain(true) and all I get is a table scan so not sure if spark sql evaluates the same condition twice? if it does, is there a way to return multiple values