Github user sudheeshkatkam commented on a diff in the pull request: https://github.com/apache/drill/pull/757#discussion_r102597862 --- Diff: exec/java-exec/src/main/java/org/apache/drill/exec/ops/QueryContext.java --- @@ -91,7 +91,12 @@ public QueryContext(final UserSession session, final DrillbitContext drillbitCon executionControls = new ExecutionControls(queryOptions, drillbitContext.getEndpoint()); plannerSettings = new PlannerSettings(queryOptions, getFunctionRegistry()); plannerSettings.setNumEndPoints(drillbitContext.getBits().size()); - table = new DrillOperatorTable(getFunctionRegistry(), drillbitContext.getOptionManager()); + + if (getOption(ExecConstants.USE_DYNAMIC_UDFS).bool_val) { + table = new DrillOperatorTable(getFunctionRegistry(), drillbitContext.getOptionManager()); --- End diff -- Avoid calling methods in this class in ctor. Use `this.table = new DrillOperatorTable(drillbitContext.getFunctionImplementationRegistry(), drillbitContext.getOptionManager());`
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---