fix(sql): JIT compilation on symbol column equality filters leads to incorrect query result#6321
Conversation
…incorrect query result
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the WalkthroughThe changes modify the IR serialization layer to use a unified tree traversal algorithm and introduce runtime validation to prevent mixing different symbol columns in operator comparisons. Three new test cases verify this validation behavior throws exceptions appropriately. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
|
@RaphDal thanks for the review! |
[PR Coverage check]😍 pass : 12 / 12 (100.00%) file detail
|
WHEREclause filters likesym_col1 = sym_col2were mistakenly JIT compiled. The compiled filter function was using internal symbol codes for the equality check which produced incorrect results returned from the query. This patch fixes the problem by disabling JIT compilation for such filters.