airpal
airpal copied to clipboard
Add detailed stage-level query progress info to frontend.
This PR wires through the detailed prestodb stage-level query progress info into the frontend. This is the same info that is shown typographically when you use presto-cli
to run a query, i.e.:
Query 20131105_005539_00082_ee7y3, RUNNING, 13 nodes, 187 splits
0:04 [97.7M rows, 14.3GB] [27.9M rows/s, 4.1GB/s] [==============>>>>>>>>] 61%
STAGES ROWS ROWS/s BYTES BYTES/s QUEUED RUN DONE
0.........R 2.43K 1.03K 49.9K 21.3K 0 1 0
1.......R 83.9M 35.8M 12.2G 5.22G 0 88 97
2.....F 25 0 2.19K 0B 0 0 1
Now, clicking on the progress bar of a running query from the RunsTable
will bring up a modal that looks like this:
I wasn't really sure where this could fit in the page so I figured a modal was the safest bet for now.
I didn't see any javascript tests in the project currently, but if the maintainers have opinions about which testing frameworks to use I'd be happy to add tests for this feature.
This also required some backend changes but those were more minimal, they basically amount to adding a new field to the Job object.