Github user ilooner commented on a diff in the pull request:
https://github.com/apache/drill/pull/984#discussion_r144195098
--- Diff:
exec/java-exec/src/main/java/org/apache/drill/exec/physical/impl/TopN/TopNBatch.java
---
@@ -95,7 +91,9 @@ public TopNBatch(TopN popConfig, FragmentContext context,
RecordBatch incoming)
super(popConfig, context);
this.incoming = incoming;
this.config = popConfig;
- batchPurgeThreshold =
context.getConfig().getInt(ExecConstants.BATCH_PURGE_THRESHOLD);
+ DrillConfig drillConfig = context.getConfig();
+ batchPurgeThreshold =
drillConfig.getInt(ExecConstants.BATCH_PURGE_THRESHOLD);
+ codegenDump =
drillConfig.getBoolean(CodeCompiler.ENABLE_SAVE_CODE_FOR_DEBUG);
--- End diff --
I will rename the option to drill.debug.codegen.TopN
---