[
https://issues.apache.org/jira/browse/CALCITE-3436?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
ASF GitHub Bot updated CALCITE-3436:
------------------------------------
Labels: pull-request-available (was: )
> CalciteConnectionConfigImpl.set obliterates previous property values
> --------------------------------------------------------------------
>
> Key: CALCITE-3436
> URL: https://issues.apache.org/jira/browse/CALCITE-3436
> Project: Calcite
> Issue Type: Bug
> Reporter: Ryan Fu
> Priority: Minor
> Labels: pull-request-available
>
> The cause is that `new Properties(properties)` doesn't copy the previous
> value as, say, `new HashMap(map)` does.
>
> * Add a unit test in PlannerTest, that if you call set(x, 1) then set(y, 2)
> on a CalciteConnectionConfigImpl, the result contains x and y.
> * Consider potentially using `clone()` as Properties implements Cloneable
--
This message was sent by Atlassian Jira
(v8.3.4#803005)