-
Notifications
You must be signed in to change notification settings - Fork 180
Add frequent used queries #4816
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
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Louis Chu <lingzhichu.clz@gmail.com>
LantaoJin
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you add corresponding tests in CalcitePPLBig5IT?
Signed-off-by: Louis Chu <lingzhichu.clz@gmail.com>
test added |
|
This PR is stalled because it has been open for 2 weeks with no activity. |
| } | ||
| */ | ||
| source = big5 | ||
| | parse `log.file.path` '/var/log/(?<logType>\\w+)/(?<filename>\\w+)' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's use rex command
| source = big5 | ||
| | parse `log.file.path` '/var/log/(?<logType>\\w+)/(?<filename>\\w+)' | ||
| | eval filename_len = length(filename) | ||
| | fields `log.file.path`, logType, filename, filename_len, `@timestamp` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: backtick is optional
| */ | ||
| source = big5 | ||
| | parse `log.file.path` '/var/log/(?<logType>\\w+)/(?<filename>\\w+)' | ||
| | eval filename_len = length(filename) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
parse_regex_with_cast_transformation.ppl
cast is not accurate, remove it.
| "query": { | ||
| "script": { | ||
| "script": { | ||
| "source": "{\"langType\":\"calcite\",\"script\":\"...\"}", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what is message field type?
| @@ -0,0 +1,37 @@ | |||
| /* | |||
| { | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Query body should include size:10?
|
This one can be closed, new PR created #4976. |
Description
This PR adds frequent used queries to the big5 workload based on gap analysis between existing benchmarks and frequent used query patterns.
New Benchmark Queries Added:
LIKE(@message, "%sshd%")with timestamp sortingCheck List
--signoffor-s.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.