GitHub user chenghao-intel opened a pull request: https://github.com/apache/spark/pull/3109
[SPARK-4244] [SQL] Workaround for Hive Generic UDFs with constant object inspector parameter Query `SELECT named_struct(lower("AA"), "12", lower("Bb"), "13") FROM src LIMIT 1` will throw exception, some of the Hive Generic UDF/UDAF requires the input object inspector is `ConstantObjectInspector`, however, we won't get that before the expression optimization executed. (Constant Folding). This PR is a work around to fix this. (As ideally, the `output` of LogicalPlan should be identical before and after Optimization). You can merge this pull request into a Git repository by running: $ git pull https://github.com/chenghao-intel/spark optimized Alternatively you can review and apply these changes as the patch at: https://github.com/apache/spark/pull/3109.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #3109 ---- commit a79046794de1e8567cd84c91c1767a7e1bc5be1a Author: Cheng Hao <hao.ch...@intel.com> Date: 2014-11-05T08:05:24Z Workaround for Hive Generic UDFs with constant object inspector parameter ---- --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org