raulcd commented on code in PR #46859:
URL: https://github.com/apache/arrow/pull/46859#discussion_r2182905969


##########
cpp/src/arrow/compute/expression.cc:
##########
@@ -1267,6 +1267,15 @@ struct Inequality {
 
     auto options = checked_pointer_cast<SetLookupOptions>(is_in_call->options);
 
+    // The maximum number of values in the is_in expression set of values
+    // in order to use the simplification.
+    // If the set is large there are performance implications, see:
+    // https://github.com/apache/arrow/issues/46777
+    static constexpr int16_t kIsInSimplificationMaxValueSet = 50;

Review Comment:
   ```suggestion
       constexpr int16_t kIsInSimplificationMaxValueSet = 50;
   ```



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