[
https://issues.apache.org/jira/browse/CALCITE-7124?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Yu Xu resolved CALCITE-7124.
----------------------------
Fix Version/s: 1.43.0
Resolution: Fixed
Fixed in
[https://github.com/apache/calcite/commit/8a8cb6f8e469d98d22c79c3a0a89c2b8a12988c4]
Thank you reported this Jira [~nobigo]
Thank you for the review [~mbudiu]
> JdbcAggregateRule should push aggregate functions FILTER clauses to
> underlying SQL via JDBC adapter
> ---------------------------------------------------------------------------------------------------
>
> Key: CALCITE-7124
> URL: https://issues.apache.org/jira/browse/CALCITE-7124
> Project: Calcite
> Issue Type: Bug
> Reporter: xiong duan
> Assignee: Yu Xu
> Priority: Major
> Labels: pull-request-available
> Fix For: 1.43.0
>
>
> In SqlDialect, the supportsAggregateFunctionFilter function determine whether
> this dialect supports the use of FILTER clauses for aggregate functions.
> And In SqlImplementor, Calcite convert `SUM(x) FILTER(WHERE b) ==> SUM(CASE
> WHEN b THEN x END)` if the dialect does't support it.
> So In JdbcAggregateRule, we should push it down, then implement the same
> semantics using JdbcDialect.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)