You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2026/06/20 13:25:00 UTC
[jira] [Updated] (CALCITE-7579) REGR_COUNT arguments are dropped in RelNode
[ https://issues.apache.org/jira/browse/CALCITE-7579?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
ASF GitHub Bot updated CALCITE-7579:
------------------------------------
Labels: pull-request-available (was: )
> REGR_COUNT arguments are dropped in RelNode
> -------------------------------------------
>
> Key: CALCITE-7579
> URL: https://issues.apache.org/jira/browse/CALCITE-7579
> Project: Calcite
> Issue Type: Bug
> Reporter: Chloe Zhang
> Assignee: Chloe Zhang
> Priority: Major
> Labels: pull-request-available
>
> When parses {{REGR_COUNT(y, x)}} the SqlKind is mistakenly set to {{SqlKind.COUNT}} instead of {{{}SqlKind.REGR_COUNT{}}}, the agg builder then drop the args {{y}} and {{x}} and replace with {{{}*{}}}, leading to empty arg list of the agg call at RelNode stage.
> A way to repro it is, parse and plan it, then convert it back to SQL, it would be:
> REGR_COUNT(y, x) -> REGR_COUNT(*)
> which is semantically incorrect
--
This message was sent by Atlassian Jira
(v8.20.10#820010)