Details
-
Improvement
-
Status: Patch Available
-
Major
-
Resolution: Unresolved
-
2.1.0
-
None
-
None
Description
@Override public void evaluate(VectorizedRowBatch batch) { ... switch (inputTypes[0]) { ... case STRING: case CHAR: case VARCHAR: try { baseDate = formatter.parse(new String(stringValue, "UTF-8")); break;
This is parsing the constant scalar for every evaluate() call.
Parsing the constant in the initialize op will save thousands of expensive calls into Calendar operations.