diff options
author | Kunal Khatua <kkhatua@users.noreply.github.com> | 2018-10-25 12:08:57 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-25 12:08:57 -0700 |
commit | 61e8b464063299dc1f67445157a46c4939b0cace (patch) | |
tree | df1a5c5bc99853057f0640b71ea86f301e0b7a4f /exec/java-exec/src/main/java/org/apache/drill/exec/compile/ClassTransformer.java | |
parent | 5859968d525dbb2f65b20a228a7f31dc9e516698 (diff) |
DRILL-6715: Update descriptions for System Options table
With introduction of DRILL-5735 , the descriptions for about half the system options still remain missing. This commit collects descriptions review by @bbevens
1. Update options for HashAgg/Join (@Ben-Zvi )
2. Update options for Parquet Reader/Writer (@sachouche )
3. Update options for Planners (@HanumathRao , @vdiravka , @KazydubB )
4. Update options for BatchSizing (@bitblender )
5. Update options for Planner Optimizations (@arina-ielchiieva )
6. Update options for Security & Kafka (Krystal Nguyen)
7. Update options for Misc entries (@arina-ielchiieva , @vvysotskyi )
In additional, there is a patch for `org.apache.drill.exec.compile.ClassTransformer.scalar_replacement` , which appears to have replaced `exec.compile.scalar_replacement`. References to the latter have been removed to avoid confusion.
Additional changes include moving the `ClassTransformer` validator to `ExecConstants.java`
Adding support for internal options' descriptions
Removed mention of {{Will be removed in 1.15.0}}. (Refer DRILL-6527)
Diffstat (limited to 'exec/java-exec/src/main/java/org/apache/drill/exec/compile/ClassTransformer.java')
-rw-r--r-- | exec/java-exec/src/main/java/org/apache/drill/exec/compile/ClassTransformer.java | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/exec/java-exec/src/main/java/org/apache/drill/exec/compile/ClassTransformer.java b/exec/java-exec/src/main/java/org/apache/drill/exec/compile/ClassTransformer.java index 05548da99..8248d7317 100644 --- a/exec/java-exec/src/main/java/org/apache/drill/exec/compile/ClassTransformer.java +++ b/exec/java-exec/src/main/java/org/apache/drill/exec/compile/ClassTransformer.java @@ -26,11 +26,11 @@ import org.apache.commons.lang3.tuple.Pair; import org.apache.drill.common.config.DrillConfig; import org.apache.drill.common.util.DrillFileUtils; import org.apache.drill.common.util.DrillStringUtils; +import org.apache.drill.exec.ExecConstants; import org.apache.drill.exec.compile.MergeAdapter.MergedClassResult; import org.apache.drill.exec.exception.ClassTransformationException; import org.apache.drill.exec.expr.CodeGenerator; import org.apache.drill.exec.server.options.OptionSet; -import org.apache.drill.exec.server.options.TypeValidators.EnumeratedStringValidator; import org.codehaus.commons.compiler.CompileException; import org.objectweb.asm.ClassReader; import org.objectweb.asm.tree.ClassNode; @@ -58,11 +58,6 @@ public class ClassTransformer { private final DrillConfig config; private final OptionSet optionManager; - public final static String SCALAR_REPLACEMENT_OPTION = - "org.apache.drill.exec.compile.ClassTransformer.scalar_replacement"; - public final static EnumeratedStringValidator SCALAR_REPLACEMENT_VALIDATOR = new EnumeratedStringValidator( - SCALAR_REPLACEMENT_OPTION, null, "try", "off", "try", "on"); - @VisibleForTesting // although we need it even if it weren't used in testing public enum ScalarReplacementOption { OFF, // scalar replacement will not ever be used @@ -235,7 +230,7 @@ public class ClassTransformer { final String entireClass, final String materializedClassName) throws ClassTransformationException { // unfortunately, this hasn't been set up at construction time, so we have to do it here - final ScalarReplacementOption scalarReplacementOption = ScalarReplacementOption.fromString(optionManager.getOption(SCALAR_REPLACEMENT_VALIDATOR)); + final ScalarReplacementOption scalarReplacementOption = ScalarReplacementOption.fromString(optionManager.getOption(ExecConstants.SCALAR_REPLACEMENT_VALIDATOR)); try { final long t1 = System.nanoTime(); |