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

[BUG] function Percentile(toUnixTimestamp(time),1) not support #8432

Open
3 tasks done
liexe opened this issue Nov 1, 2024 · 0 comments
Open
3 tasks done

[BUG] function Percentile(toUnixTimestamp(time),1) not support #8432

liexe opened this issue Nov 1, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@liexe
Copy link

liexe commented Nov 1, 2024

Search before asking

  • I had searched in the issues and found no similar feature requirement.

DeepFlow Component

Server

What you expected to happen

2024-11-01 10:24:54.549 [ERRO] [prometheus] queryable_offload.go:207 function: Percentile(toUnixTimestamp(time), 1) not support
2024-11-01 10:24:54.549 [ERRO] [prometheus] queryable_offload.go:208 offload querier sql: SELECT time(time, 20, 1,'', 16) AS timestamp,tag,Percentile(toUnixTimestamp(time),1) as _last_timestamp,Percentile(toUnixTimestamp(time),0) as _first_timestamp,Percentile(value, 0) as _first_value,Max(value) as value FROM process_runtime_jvm_gc_duration_sum WHERE (time >= 1730405616 AND time <= 1730427516) AND tag.job = 'java' AND tag.instance REGEXP '^11.244.222.18:9567$' GROUP BY tag,timestamp ORDER BY timestamp desc LIMIT 1000000

Look at the code where the problem is with the parseSelectAlias method in clickhouse.go,
This situation may need to be handled according to the BinaryFunction.
查看代码发现问题出在clickhouse.go的 parseSelectAlias方法,可能需要按照BinaryFunction进行处理

How to reproduce

When you use Prometheus Range to query APIs, set operator-offloading=true
Use the increase function in promql, for example: increase(process_runtime_jvm_gc_duration_sum{job="java",instance=~"^11.244.222.18:9567$"}[5m])

DeepFlow version

6.6.1.12

DeepFlow agent list

No response

Kubernetes CNI

No response

Operation-System/Kernel version

Ubuntu 22.04
5.15.0-105-generic

Anything else

No response

Are you willing to submit a PR?

  • Yes I am willing to submit a PR!

Code of Conduct

@liexe liexe added the bug Something isn't working label Nov 1, 2024
@liexe liexe changed the title [BUG] function Percentile not support [BUG] function Percentile(toUnixTimestamp(time),1) not support Nov 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants