[Groonga-commit] groonga/groonga at 143c8e8 [master] expr optimize: fix sub node combination for AND_NOT

Back to archive index
Kouhei Sutou null+****@clear*****
Mon Mar 4 14:13:20 JST 2019


Kouhei Sutou	2019-03-04 14:13:20 +0900 (Mon, 04 Mar 2019)

  Revision: 143c8e83519ccb19428a4db6de37ba46df0a04ee
  https://github.com/groonga/groonga/commit/143c8e83519ccb19428a4db6de37ba46df0a04ee

  Message:
    expr optimize: fix sub node combination for AND_NOT

  Modified files:
    lib/mrb/scripts/expression_tree_builder.rb

  Modified: lib/mrb/scripts/expression_tree_builder.rb (+2 -1)
===================================================================
--- lib/mrb/scripts/expression_tree_builder.rb    2019-03-04 14:03:37 +0900 (d5f6ea01c)
+++ lib/mrb/scripts/expression_tree_builder.rb    2019-03-04 14:13:20 +0900 (3daa8b350)
@@ -131,7 +131,8 @@ module Groonga
     private
     def add_logical_operation_node(operator, nodes, node)
       if node.is_a?(ExpressionTree::LogicalOperation) and
-          node.operator == operator
+          node.operator == operator and
+          node.operator != Operator::AND_NOT
         nodes.concat(node.nodes)
       else
         nodes << node
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20190304/5a247056/attachment.html>


More information about the Groonga-commit mailing list
Back to archive index