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

victoria logsQL sort unexpected result. #6274

Open
3 tasks done
ygsa opened this issue May 15, 2024 · 3 comments
Open
3 tasks done

victoria logsQL sort unexpected result. #6274

ygsa opened this issue May 15, 2024 · 3 comments
Labels
question The question issue victorialogs

Comments

@ygsa
Copy link

ygsa commented May 15, 2024

Is your question request related to a specific component?

victoria-logs

Describe the question in detail

English is not my native language; please excuse typing errors.

When I query logs without using the sort function, I get 10 logs. I expect that when I use the sort function, I will also get 10 logs, just in a different order. However, I only get 1 log result with my query when I use the sort function.

image

image

Troubleshooting docs

@ygsa ygsa added the question The question issue label May 15, 2024
@AndrewChubatiuk
Copy link
Contributor

Hey @ygsa
Which VictoriaLogs version are you using?

@AndrewChubatiuk
Copy link
Contributor

was able to reproduce it on a latest version

@AndrewChubatiuk
Copy link
Contributor

@valyala see in implementation that sort relies on topk in case if limit precedes sort. Is this behaviour expected?

@hagen1778 hagen1778 removed the logs label May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question The question issue victorialogs
Projects
None yet
Development

No branches or pull requests

4 participants