You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Stamatis Zampetakis (Jira)" <ji...@apache.org> on 2025/08/06 14:27:00 UTC
[jira] [Updated] (CALCITE-7130) DiffRepository does not enforce any order on XML resources
[ https://issues.apache.org/jira/browse/CALCITE-7130?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Stamatis Zampetakis updated CALCITE-7130:
-----------------------------------------
Affects Version/s: 1.40.0
> DiffRepository does not enforce any order on XML resources
> ----------------------------------------------------------
>
> Key: CALCITE-7130
> URL: https://issues.apache.org/jira/browse/CALCITE-7130
> Project: Calcite
> Issue Type: Bug
> Components: tests
> Affects Versions: 1.40.0
> Reporter: Stamatis Zampetakis
> Priority: Major
>
> As agreed in CALCITE-4593, the DiffRepository class must ensure that the {{TestCase}} resources in the reference/golden XML file are in alphabetical order and raise errors if that's not the case. Moreover, the generated reference file should always contain the resources sorted based on the name of the {{TestCase}}.
> At the moment (commit 4fa0d5bbe987c4ae0779ca434fb71e1ae8637b77) none of the above happens. The problem can be reproduced easily by manually changing the order of the TestCases inside a reference file (e.g., [RelOptRulesTest.xml|https://github.com/apache/calcite/blob/4fa0d5bbe987c4ae0779ca434fb71e1ae8637b77/core/src/test/resources/org/apache/calcite/test/RelOptRulesTest.xml]) and then running the respective test. Instead of failing the test will pass without problems.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)