Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add estimated time for query execution #1158

Merged
merged 2 commits into from
Feb 10, 2023
Merged

Conversation

czgu
Copy link
Collaborator

@czgu czgu commented Feb 10, 2023

image

This is just a linear interpolation on how long the query would finish

@czgu czgu marked this pull request as ready for review February 10, 2023 04:23
moment.duration(secondsRemainToComplete, 'seconds')
)}
.
</div>
Copy link
Collaborator

Choose a reason for hiding this comment

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

would prefer to format the string first to avoid the weird {' '}, e.g.

message = `Estimated to be completed in ${formatDuration(moment.duration(secondsRemainToComplete, 'seconds'))}.`

<div>{message}</div>

contentDOM = (
<div className="statement-execution-text-container">
<div className="statement-execution-text-title">
Status: {statusLabel}
</div>
{getMetaInfoDOM()}
{progressBar}
{estimatedTimeDOM}
Copy link
Collaborator

@jczhong84 jczhong84 Feb 10, 2023

Choose a reason for hiding this comment

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

how about display the estimation in the same line with progress bar, after the %, like
[>>>>.........] 25% (Estimated to be completed in 14s)

or just

[>>>>.........] 25% ( 14s remaining)

@czgu czgu merged commit 7a25679 into pinterest:master Feb 10, 2023
@czgu czgu deleted the progress2 branch February 10, 2023 19:17
czgu added a commit to czgu/querybook that referenced this pull request Feb 15, 2023
czgu added a commit that referenced this pull request Feb 15, 2023
rohan-sh1 pushed a commit to CAI-TECHNOLOGIES/cai-ext-db-explorer that referenced this pull request Apr 11, 2023
* feat: add estimated time for query execution

* resolved comments
rohan-sh1 pushed a commit to CAI-TECHNOLOGIES/cai-ext-db-explorer that referenced this pull request Apr 11, 2023
aidenprice pushed a commit to arrowtail-precision/querybook that referenced this pull request Jan 3, 2024
* feat: add estimated time for query execution

* resolved comments
aidenprice pushed a commit to arrowtail-precision/querybook that referenced this pull request Jan 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants