davidvrba commented on issue #26294: [SPARK-28477] [SQL] Rewrite CaseWhen with 
single branch to If
URL: https://github.com/apache/spark/pull/26294#issuecomment-551404013
 
 
   @cloud-fan Do you have any suggestion how to deal with the failing unit 
test? Can you please correct me: My understanding is that the test requires 
number of global variables to be equal to 1, but `If` expression generates 0, 
this is why the test fails with `ArrayBuffer() had size 0 instead of expected 
size 1`. So we could just modify the condition in the unit test as 
`ctx.inlinedMutableStates.size =< 1`. Is that correct, or do i get it wrong? 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to