You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by GitBox <gi...@apache.org> on 2019/11/19 23:19:17 UTC

[GitHub] [incubator-druid] clintropolis commented on a change in pull request #8908: fix sql compatible null handling config work with runtime.properties

clintropolis commented on a change in pull request #8908: fix sql compatible null handling config work with runtime.properties
URL: https://github.com/apache/incubator-druid/pull/8908#discussion_r348220567
 
 

 ##########
 File path: core/src/main/java/org/apache/druid/common/config/NullHandling.java
 ##########
 @@ -50,16 +50,22 @@
    * It does not take effect in all unit tests since we don't use Guice Injection.
    */
   @Inject
-  private static NullValueHandlingConfig INSTANCE = new NullValueHandlingConfig(
-      Boolean.valueOf(System.getProperty(NULL_HANDLING_CONFIG_STRING, "true"))
-  );
+  private static NullValueHandlingConfig INSTANCE;
+
+  private static volatile Boolean isReplaceWithDefault = null;
 
 Review comment:
   After discussion, maybe the explicit initialization is better in order to rid magic from our world, closing this PR and re-opening #8876

----------------------------------------------------------------
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

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org