Package org.apache.druid.math.expr
Class ExpressionProcessing
- java.lang.Object
-
- org.apache.druid.math.expr.ExpressionProcessing
-
public class ExpressionProcessing extends Object
LikeNullHandling
, except for expressions processing configs
-
-
Constructor Summary
Constructors Constructor Description ExpressionProcessing()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
initializeForHomogenizeNullMultiValueStrings()
static void
initializeForStrictBooleansTests(boolean useStrict)
static void
initializeForTests()
Many unit tests do not setup modules for this value to be injected, this method provides a manual way to initializeINSTANCE
static boolean
isHomogenizeNullMultiValueStringArrays()
All multi-value string expression input values of 'null', '[]', and '[null]' will be coerced to '[null]'.static boolean
processArraysAsMultiValueStrings()
AllExprType.ARRAY
values will be converted toExpressionType.STRING
by their column selectors (not within expression processing) to be treated as multi-value strings instead of native arrays.static boolean
useStrictBooleans()
All boolean expressions areExpressionType.LONG
-
-
-
Method Detail
-
initializeForTests
public static void initializeForTests()
Many unit tests do not setup modules for this value to be injected, this method provides a manual way to initializeINSTANCE
-
initializeForStrictBooleansTests
public static void initializeForStrictBooleansTests(boolean useStrict)
-
initializeForHomogenizeNullMultiValueStrings
public static void initializeForHomogenizeNullMultiValueStrings()
-
useStrictBooleans
public static boolean useStrictBooleans()
All boolean expressions areExpressionType.LONG
-
processArraysAsMultiValueStrings
public static boolean processArraysAsMultiValueStrings()
AllExprType.ARRAY
values will be converted toExpressionType.STRING
by their column selectors (not within expression processing) to be treated as multi-value strings instead of native arrays.
-
isHomogenizeNullMultiValueStringArrays
public static boolean isHomogenizeNullMultiValueStringArrays()
All multi-value string expression input values of 'null', '[]', and '[null]' will be coerced to '[null]'. If false, (the default) this will only be done when single value expressions are implicitly mapped across multi-value rows, so that the single valued expression will always be evaluated with an input value of 'null'
-
-