abhishekrb19 opened a new issue #10275:
URL: https://github.com/apache/druid/issues/10275


   Explain SQL query plan fails with a pop-up dialog: "Cannot read property 
'replace' of undefined". This only appears to happen when I have a SQL line 
commented out `EXPLAIN QUERY FOR` in the query text scratch space. i.e., the 
Druid SQL query looks something like:
   ```
   -- EXPLAIN PLAN FOR (
   SELECT * FROM wikipedia
   -- )
   ```
   
   Please see screenshots below.
   
   ### Affected Version
   
   0.18.1
   
   ### Description
   I was running the SQL query plan by hand and then I realized that the 
console already has an option of viewing the plan from the `...` menu, so I 
commented out the SQL line, but I get the following error.
   ### Selecting the option from the Druid console:
   
   ![CleanShot 2020-08-13 at 07 09 
09@2x](https://user-images.githubusercontent.com/8687261/90144757-121ab700-dd34-11ea-963b-21b2c2b7f834.png)
   
   
   ### Pop-up dialog error message:
   
   <img width="607" alt="CleanShot 2020-08-13 at 07 04 32@2x" 
src="https://user-images.githubusercontent.com/8687261/90144778-18a92e80-dd34-11ea-8b81-e902696802fb.png";>
   
   I think the SQL comment with "EXPLAIN PLAIN FOR" is throwing some parser 
off. Removing the SQL comment or changing the comment successfully executes the 
query plan.
   
   /cc: @vogievetsky 
   


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

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to