apurtell opened a new pull request, #2663:
URL: https://github.com/apache/phoenix/pull/2663

   InListExpression treats only the left-hand operand as an AST child node, 
maintaining the candidate values of the IN list as internal state. Expression 
cloning previously only looked at child nodes. Because the literal values were 
omitted from this traversal, the resulting clone lacked its target set and 
evaluated to false for every row.
   
   This failure emerges in execution paths where RowProjectors create local 
expression copies to isolate per-invocation functions like RAND(). Components 
such as UPSERT SELECT and PhoenixRecordReader consume these cloned projections, 
causing queries with projected, non-deterministic IN expressions to 
consistently resolve to false.
   
   The fix is for expression cloning to explicitly carry forward the source 
list's literal values alongside the cloned operand.


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

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to