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

[FEATURE] Metrics Requirements - REPL #96

Closed
penghuo opened this issue Oct 23, 2023 · 1 comment
Closed

[FEATURE] Metrics Requirements - REPL #96

penghuo opened this issue Oct 23, 2023 · 1 comment
Labels
0.1.1 enhancement New feature or request untriaged

Comments

@penghuo
Copy link
Collaborator

penghuo commented Oct 23, 2023

  • Statement executionTime
    • opt-1 REPL update lastUpdateTime field of statement doc when ever update statement state. client calculate executionTime = lastUpdateTime - submitTime.
    • opt-2 REPL update executionTime.
@kaituo
Copy link
Collaborator

kaituo commented Nov 7, 2023

Implemented opt-2. In result doc, we have queryRunTime in milliseconds.

{
"_index": "query_results2",
"_id": "de1Xp4sB3TUuWZmbQ6Gy",
"_score": null,
"_source": {
"jobRunId": "00fei4lh5a82280q",
"applicationId": "00fd777k3k3ls20p",
"dataSourceName": "myS3Glue",
"status": "FAILED",
"error": "Executing SELECT AVG(size) FROM my_glue1.default.http_logs_150 WHERE status = 403 timed out",
"queryId": "101",
"queryText": "SELECT AVG(size) FROM my_glue1.default.http_logs_150 WHERE status = 403 ",
"sessionId": "10",
"updateTime": 1699319594764,
"queryRunTime": 60002
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.1.1 enhancement New feature or request untriaged
Projects
None yet
Development

No branches or pull requests

2 participants