[ https://issues.apache.org/jira/browse/HIVE-2470?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13118281#comment-13118281 ]
Jonathan Chang commented on HIVE-2470: -------------------------------------- Oh, I remember why I did things like this. It's because types are checked at parse time (when the ExprGenericFuncNodes are created initialize() is called). Therefore we can't do this in the optimize step because UDFs which depend on a parameter being constant will fail if the constants in their children expressions haven't been folded by the time they get created. This leaves two options. The first is to modify the tree in place during the beast that is semantic analysis (I'm ok with this if you are). The other, which I went with, is to have the UDFs themselves do the folding during their initializations. > Improve support for Constant Object Inspectors > ---------------------------------------------- > > Key: HIVE-2470 > URL: https://issues.apache.org/jira/browse/HIVE-2470 > Project: Hive > Issue Type: Improvement > Reporter: Jonathan Chang > Assignee: Jonathan Chang > Attachments: HIVE-1360.part2.patch, HIVE-2470.patch > > > ConstantObjectInspectors are nice but they need to be more widely supported > and used. In particular, > * More functions need to be using them. > * There need to be facilities for propagating constness. > * Support for complex types must be added. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira