[
https://issues.apache.org/jira/browse/CALCITE-4570?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Stamatis Zampetakis resolved CALCITE-4570.
------------------------------------------
Fix Version/s: 1.27.0
Resolution: Fixed
Fixed in
[029969719980dd0707c9ca51087891b691593b14|https://github.com/apache/calcite/commit/029969719980dd0707c9ca51087891b691593b14].
> Always validate preconditions in Filter, Correlate, Snapshot expressions when
> assertions are enabled
> ----------------------------------------------------------------------------------------------------
>
> Key: CALCITE-4570
> URL: https://issues.apache.org/jira/browse/CALCITE-4570
> Project: Calcite
> Issue Type: Improvement
> Reporter: Stamatis Zampetakis
> Assignee: Stamatis Zampetakis
> Priority: Major
> Labels: pull-request-available
> Fix For: 1.27.0
>
> Time Spent: 40m
> Remaining Estimate: 0h
>
> At the moment precondition validation is performed in Filter, Correlate,
> Snapshot constructors only when {{CalciteSystemProperty.DEBUG}} is true and
> assertions are enabled.
> Most of the time {{CalciteSystemProperty.DEBUG}} is set to false so the
> checks are not performed which could lead to problems that are difficult to
> spot. Failing fast when there is an obvious problem in the structure of the
> plan is a great help for fixing issues that may also remain unnoticed for a
> very long time.
> The goal of this issue is to always validate preconditions in the constructor
> of Filter, Correlate, and Snapshot regardless if
> {{CalciteSystemProperty.DEBUG}} is enabled or not. To avoid the performance
> overhead in production the assertions can be disabled as it usually happens.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)