Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-193

LP:944706 - Query with impossible or constant subquery in WHERE or HAVING is not precomputed and thus not part of optimization

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.5.25
    • Component/s: None
    • Labels:
      None

      Description

      https://bugs.launchpad.net/maria/+bug/944706

      This is not a new bug, but it has been recently switched from milestone 5.3 to 5.5, so it needs an entry in JIRA.
      Fix version 5.5.23 is temporary.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

              Hide
              timour Timour Katchaounov added a comment -

              Fixed all crashes resulting from enabling back subquery execution during query optimization.
              The result of the fixes is that now I need to find a new solution for bug https://bugs.launchpad.net/maria/+bug/944504, because its current fix is to forbid subquery evaluation during optimization.

              After fixing this remaining crash (bug lp:944504), there are several wrong results to be fixed.
              After that, the patch needs improvement in how we detect if a subquery is expensive, and to refine two of the fixes for EXPLAIN-specific crashes.

              Show
              timour Timour Katchaounov added a comment - Fixed all crashes resulting from enabling back subquery execution during query optimization. The result of the fixes is that now I need to find a new solution for bug https://bugs.launchpad.net/maria/+bug/944504 , because its current fix is to forbid subquery evaluation during optimization. After fixing this remaining crash (bug lp:944504), there are several wrong results to be fixed. After that, the patch needs improvement in how we detect if a subquery is expensive, and to refine two of the fixes for EXPLAIN-specific crashes.
              Hide
              timour Timour Katchaounov added a comment -
              • Analyzed EXPLAIN differences due to merge
              • Finished mere, pushed into 5.5.25.
              Show
              timour Timour Katchaounov added a comment - Analyzed EXPLAIN differences due to merge Finished mere, pushed into 5.5.25.

                People

                • Assignee:
                  timour Timour Katchaounov
                  Reporter:
                  elenst Elena Stepanova
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Time Tracking

                    Estimated:
                    Original Estimate - 2 days, 2 hours Original Estimate - 2 days, 2 hours
                    2d 2h
                    Remaining:
                    Remaining Estimate - 0 minutes
                    0m
                    Logged:
                    Time Spent - 1 week, 3 days, 6 hours, 30 minutes
                    1w 3d 6h 30m