Implement vectorized support for the all the built-in math functions. This includes implementing the vectorized operation, and tying it all together in VectorizationContext so it runs end-to-end. These functions include:
Pow(col, p), Power(col, p)
Conv(Col, from_base, to_base)
To reduce the total code volume, do an implicit type cast from non-double input types to double.
Also, POSITITVE and NEGATIVE are syntactic sugar for unary + and unary -, so reuse code for those as appropriate.
Try to call the function directly in the inner loop and avoid new() or expensive operations, as appropriate.
Templatize the code where appropriate, e.g. all the unary function of form
can probably be done with a template.
- relates to
HIVE-4898 make vectorized math functions work end-to-end (update VectorizationContext.java)