vogievetsky commented on a change in pull request #7421: Add time taken by last
query in SQL view
URL: https://github.com/apache/incubator-druid/pull/7421#discussion_r273277892
##########
File path: web-console/src/components/sql-control.tsx
##########
@@ -218,6 +219,10 @@ export class SqlControl extends
React.Component<SqlControlProps, SqlControlState
{isRune ? 'Rune' : 'Run'}
</Button>
{!isRune ? SqlControlPopover : null}
+ {queryElapsed === null
+ ? null
+ : <span className={"query-elapsed"}> Last query took {(queryElapsed
/ 1000).toFixed(2)} seconds</span>
+ }
Review comment:
A neater way to write this is:
```
{
typeof queryElapsed === 'number' &&
<span className={"query-elapsed"}> Last query took {(queryElapsed /
1000).toFixed(2)} seconds</span>
}
```
----------------------------------------------------------------
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]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]