JSqlParser icon indicating copy to clipboard operation
JSqlParser copied to clipboard

[BUG] JSQLParser Version : 4.9 RDBMS : not support clickhouse quantile expression

Open Knight-ZXW opened this issue 11 months ago • 2 comments

Always check against the Latest SNAPSHOT of JSQLParser and the Syntax Diagram

Failing SQL Feature:

quantile(0.95)(cost) not support

SQL Example:

select toStartOfDay(timestamp) AS date, count(1) as count, quantile(0.95)(cost) as 95cost from apm_log_event

Software Information:

  • JSqlParser 4.9
  • Database :Clickhouse

image

Knight-ZXW avatar Dec 18 '24 08:12 Knight-ZXW

Greetings.

This is unsupported syntax far away from any standard and you would need to provide or sponsor an implementation to make it happen.

manticore-projects avatar Dec 18 '24 08:12 manticore-projects

we define a new function in our system that names like quantile_param(0.95, xx ...) then transform to quantile(0.95)(cost)

Yizhe1208 avatar Jun 06 '25 10:06 Yizhe1208