Uploaded image for project: 'Percona Monitoring and Management'
  1. Percona Monitoring and Management
  2. PMM-913

EXPLAIN on non-Data Manipulation Statements throws error 1064 in QAN2

    Details

    • Type: Bug
    • Status: Done
    • Priority: Low
    • Resolution: Fixed
    • Affects Version/s: 1.1.4
    • Fix Version/s: 1.3.2
    • Component/s: QAN App, UX
    • Labels:

      Description

      We shouldn't be running EXPLAIN on non-Data Manipulation Statements, of which the most common are:

      SELECT
      UPDATE
      INSERT
      DELETE
      

      Otherwise we see the following error in QAN2:

      Examples of where EXPLAIN has thrown ERROR 1064 are:

      LOCK TABLES
      SET
      QUIT
      SHOW SLAVE STATUS

      Maybe in this case it should return message: EXPLAIN failed: cannot convert query to SELECT or other relevant message.

       

       

      Task 

      Implement User-friendly Error warning - "This type of query is not supported for EXPLAIN."

        Smart Checklist

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  borys.belinsky Borys Belinsky
                  Reporter:
                  nailya.kutlubaeva Nailya Kutlubaeva
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: