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 2020/02/04 00:03:52 UTC

[GitHub] [druid] suneet-s commented on a change in pull request #9279: Guicify druid sql module

suneet-s commented on a change in pull request #9279: Guicify druid sql module
URL: https://github.com/apache/druid/pull/9279#discussion_r374410500
 
 

 ##########
 File path: sql/src/main/java/org/apache/druid/sql/guice/SqlModule.java
 ##########
 @@ -63,25 +55,21 @@ public void configure(Binder binder)
     if (isEnabled()) {
       Calcites.setSystemProperties();
 
-      JsonConfigProvider.bind(binder, "druid.sql.planner", PlannerConfig.class);
-      JsonConfigProvider.bind(binder, "druid.sql.avatica", AvaticaServerConfig.class);
-      LifecycleModule.register(binder, DruidSchema.class);
       binder.bind(ViewManager.class).to(NoopViewManager.class).in(LazySingleton.class);
 
-      // Add empty SqlAggregator binder.
-      Multibinder.newSetBinder(binder, SqlAggregator.class);
+      binder.install(new DruidCalciteSchemaModule());
 
 Review comment:
   A pattern I've used in the past is 1 module per sub package. The source directory structure should already be broken up so that related classes are under the same package.

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