You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Dmitry Sysolyatin (Jira)" <ji...@apache.org> on 2026/01/07 07:48:00 UTC

[jira] [Resolved] (CALCITE-7301) [CALCITE-7301] Add common test for SqlNode unparse after deep copy and missing createCall in operators

     [ https://issues.apache.org/jira/browse/CALCITE-7301?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dmitry Sysolyatin resolved CALCITE-7301.
----------------------------------------
    Fix Version/s: 1.42.0
       Resolution: Fixed

Fixed in https://github.com/apache/calcite/commit/ab6a397c9161824ef00715fba41eef54a39a083d

Thanks for review [~mbudiu]

> [CALCITE-7301] Add common test for SqlNode unparse after deep copy and missing createCall in operators
> ------------------------------------------------------------------------------------------------------
>
>                 Key: CALCITE-7301
>                 URL: https://issues.apache.org/jira/browse/CALCITE-7301
>             Project: Calcite
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 1.41.0
>            Reporter: Dmitry Sysolyatin
>            Assignee: Dmitry Sysolyatin
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.42.0
>
>
> Many issues like [CALCITE-5439], [CALCITE-4406], [CALCITE-6178], and [CALCITE-7339] have the same problem. If SqlShuttle or any other mechanism creates a copy of a SqlCall with different operands, and the operator does not implement createCall, then it fails to unparse/validate the SqlNode
> This task adds a common test case that runs on existing parsing tests and checks that unparsing after a deep copy works correctly. It also fixes the SqlOperators for which common test was failing



--
This message was sent by Atlassian Jira
(v8.20.10#820010)