[
https://issues.apache.org/jira/browse/CALCITE-5153?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Julian Hyde resolved CALCITE-5153.
----------------------------------
Resolution: Fixed
Fixed in
[0f666b3d|https://github.com/apache/calcite/commit/0f666b3d2bbffdc1824c18eb4ec49891684025c2].
> Create an immutable version of ListSqlOperatorTable
> ---------------------------------------------------
>
> Key: CALCITE-5153
> URL: https://issues.apache.org/jira/browse/CALCITE-5153
> Project: Calcite
> Issue Type: Bug
> Reporter: Julian Hyde
> Assignee: Julian Hyde
> Priority: Major
> Fix For: 1.31.0
>
>
> Create an immutable version of {{class ListSqlOperatorTable}}, to be created
> via {{SqlOperatorTables.of(operatorList)}} or
> {{SqlOperatorTables.of(operator, ...)}}.
> {{class ListSqlOperatorTable}} still exists but its constructors and
> {{add(SqlOperator)}} methods are deprecated. We hope that people will create
> immutable operator tables most of the time.
> Refactor {{MockSqlOperatorTable}} to be immutable. Methods that mutate the
> table, such as {{addRamp}}, are replaced by methods that return a copy.
--
This message was sent by Atlassian Jira
(v8.20.7#820007)