apache/spark — pull request #2355 by adrian-wang (2014-09-11 09:52:45+00:00)
Title: [SPARK-3485][SQL] should check parameter type when look for constructors

In hiveUdfs, we get constructors of primitivetypes by find a constructor which takes only one parameter. This is very dangerous when more than one constructors match. When the sequence of primitiveTypes becomes larger, the problem would occur, causing a exception as

java.lang.IllegalArgumentException: argument type mismatch