You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@calcite.apache.org by GitBox <gi...@apache.org> on 2019/10/21 01:46:11 UTC

[GitHub] [calcite] julianhyde commented on a change in pull request #1522: [CALCITE-3323] Handle arbitrary/unknown functions that have ordinary syntax

julianhyde commented on a change in pull request #1522: [CALCITE-3323] Handle arbitrary/unknown functions that have ordinary syntax
URL: https://github.com/apache/calcite/pull/1522#discussion_r336815082
 
 

 ##########
 File path: core/src/main/java/org/apache/calcite/config/CalciteConnectionConfigImpl.java
 ##########
 @@ -40,8 +40,13 @@ public CalciteConnectionConfigImpl(Properties properties) {
   /** Returns a copy of this configuration with one property changed. */
   public CalciteConnectionConfigImpl set(CalciteConnectionProperty property,
       String value) {
-    final Properties properties1 = new Properties(properties);
-    properties1.setProperty(property.camelName(), value);
+    final Properties properties1 = new Properties();
+    this.properties.forEach((connectionProp, connectionValue) -> {
+      properties1.setProperty((String) connectionProp, (String) connectionValue);
+    });
 
 Review comment:
   Yes, `clone()` looks promising.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services