spark-instrumented-optimizer/sql/catalyst/src
Yuming Wang 4d01aa4648 [SPARK-20754][SQL][FOLLOWUP] Add Function Alias For MOD/POSITION.
## What changes were proposed in this pull request?

https://github.com/apache/spark/pull/18106 Support TRUNC (number),  We should also add function alias for `MOD `and `POSITION`.

`POSITION(substr IN str) `is a synonym for `LOCATE(substr,str)`. same as MySQL: https://dev.mysql.com/doc/refman/5.7/en/string-functions.html#function_position

## How was this patch tested?

unit tests

Author: Yuming Wang <wgyumg@gmail.com>

Closes #18206 from wangyum/SPARK-20754-mod&position.
2017-06-13 23:39:06 -07:00
..
main [SPARK-20754][SQL][FOLLOWUP] Add Function Alias For MOD/POSITION. 2017-06-13 23:39:06 -07:00
test [SPARK-20754][SQL][FOLLOWUP] Add Function Alias For MOD/POSITION. 2017-06-13 23:39:06 -07:00