Skip to content

SQL explain in web console#7402

Merged
clintropolis merged 7 commits intoapache:masterfrom
implydata:console-explain
Apr 5, 2019
Merged

SQL explain in web console#7402
clintropolis merged 7 commits intoapache:masterfrom
implydata:console-explain

Conversation

@shuqi7
Copy link
Copy Markdown
Contributor

@shuqi7 shuqi7 commented Apr 2, 2019

Fixes #7377

  • Imitating explain plan for query and parse the response into JSON in a dialog
  • It locates here:
    image

There are 4 different situations:

  1. error message if the query is invalid
  2. A query and its signature if the query can be parsed
    image
  3. Two queries for semi-joined queries
    image
  4. Explanations which could not be parsed into JSON
    image

@vogievetsky
Copy link
Copy Markdown
Contributor

Why is the label centered and not left aligned in the menu?

Comment thread web-console/src/views/sql-view.scss Outdated
Copy link
Copy Markdown
Contributor

@vogievetsky vogievetsky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A bit of tidy up is needed

Comment thread web-console/src/utils/druid-query.tsx Outdated
Comment thread web-console/src/utils/druid-query.tsx Outdated
Comment thread web-console/src/components/sql-control.tsx Outdated
Comment thread web-console/src/components/sql-control.tsx Outdated
Comment thread web-console/src/components/sql-control.tsx Outdated
Comment thread web-console/src/views/sql-view.tsx Outdated
@shuqi7 shuqi7 force-pushed the console-explain branch from 8a0aa8e to 5fb8fc8 Compare April 4, 2019 19:46
@vogievetsky
Copy link
Copy Markdown
Contributor

@shuqi7 in the future please do not force push your branch after making the PR, it makes it harder to see what changes have been made when.

Copy link
Copy Markdown
Contributor

@vogievetsky vogievetsky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We want types!

Comment thread web-console/src/utils/druid-query.tsx Outdated
Comment thread web-console/src/dialogs/query-plan-dialog.tsx Outdated
@vogievetsky
Copy link
Copy Markdown
Contributor

Looking good. Thank you for promptly addressing the feedback. 👍

Copy link
Copy Markdown
Member

@clintropolis clintropolis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice 👍

It does make me sad you have to parse the explain like that, maybe in the future we could give it back in a format that is a bit more friendly...

@clintropolis clintropolis merged commit a66291a into apache:master Apr 5, 2019
@clintropolis clintropolis deleted the console-explain branch April 5, 2019 19:45
@clintropolis clintropolis added this to the 0.15.0 milestone Apr 5, 2019
gianm pushed a commit to implydata/druid-public that referenced this pull request Apr 10, 2019
* Add explain for SQL query

* Terminate explain query manager

* Add signature for semi-joined queries

* Extract components out

* Hide more button in rune mode

* Add types for query explanation parser

* Add type for query-plan-dialog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants