Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-10171

Add Constant Reduction Rules to Calcite Planner

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.5, 7.0
    • Component/s: Parallel SQL
    • Security Level: Public (Default Security Level. Issues are Public)
    • Labels:
      None

      Description

      SOLR-8845 found that Spark runs queries with "where 1 = 0" This should be reduced and removed from the plan by the Calcite planner and not have to be pushed down to Solr.

        Issue Links

          Activity

          Hide
          risdenk Kevin Risden added a comment -

          This patch adds the Constant Reduction rules and tests that 1 = 0 works correctly with the new rules in place.

          Show
          risdenk Kevin Risden added a comment - This patch adds the Constant Reduction rules and tests that 1 = 0 works correctly with the new rules in place.
          Hide
          risdenk Kevin Risden added a comment -

          Once SOLR-8593 is committed to branch_6x this should be pulled back too.

          Show
          risdenk Kevin Risden added a comment - Once SOLR-8593 is committed to branch_6x this should be pulled back too.
          Hide
          risdenk Kevin Risden added a comment -

          Joel Bernstein - Any thoughts on this?

          Show
          risdenk Kevin Risden added a comment - Joel Bernstein - Any thoughts on this?
          Hide
          jira-bot ASF subversion and git services added a comment -

          Commit 686fbd3ba294e7a71f08b2821b5c3ce50235c78b in lucene-solr's branch refs/heads/master from Kevin Risden
          [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=686fbd3 ]

          SOLR-10171: Add Constant Reduction Rules to Calcite Planner

          Show
          jira-bot ASF subversion and git services added a comment - Commit 686fbd3ba294e7a71f08b2821b5c3ce50235c78b in lucene-solr's branch refs/heads/master from Kevin Risden [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=686fbd3 ] SOLR-10171 : Add Constant Reduction Rules to Calcite Planner
          Hide
          jira-bot ASF subversion and git services added a comment -

          Commit 08ad0e3316bfa0ff1dbf79f54a6fbbc814943bcf in lucene-solr's branch refs/heads/branch_6x from Kevin Risden
          [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=08ad0e3 ]

          SOLR-10171: Add Constant Reduction Rules to Calcite Planner

          Show
          jira-bot ASF subversion and git services added a comment - Commit 08ad0e3316bfa0ff1dbf79f54a6fbbc814943bcf in lucene-solr's branch refs/heads/branch_6x from Kevin Risden [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=08ad0e3 ] SOLR-10171 : Add Constant Reduction Rules to Calcite Planner

            People

            • Assignee:
              risdenk Kevin Risden
              Reporter:
              risdenk Kevin Risden
            • Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development