[ https://issues.apache.org/jira/browse/HIVE-4864?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ashutosh Chauhan updated HIVE-4864: ----------------------------------- Assignee: Cheng Hao Affects Version/s: 0.10.0 0.11.0 Status: Open (was: Patch Available) > Code Comments seems confused between GenericUDFCase & GenericUDFWhen > -------------------------------------------------------------------- > > Key: HIVE-4864 > URL: https://issues.apache.org/jira/browse/HIVE-4864 > Project: Hive > Issue Type: Task > Affects Versions: 0.11.0, 0.10.0, 0.9.0 > Reporter: Cheng Hao > Assignee: Cheng Hao > Priority: Trivial > Attachments: 1.patch > > > Code Comment in GenericUDFCase: > /** > * GenericUDF Class for SQL construct > * "CASE WHEN a THEN b WHEN c THEN d [ELSE f] END". > * > * NOTES: 1. a and c should be boolean, or an exception will be thrown. 2. b, d > * and f should have the same TypeInfo, or an exception will be thrown. > */ > And the code comment in GenericUDFWhen: > /** > * GenericUDF Class for SQL construct "CASE a WHEN b THEN c [ELSE f] END". > * > * NOTES: 1. a and b should have the same TypeInfo, or an exception will be > thrown. 2. c and f should have the same TypeInfo, or an exception will be > * thrown. > */ > From the code itself, seems the comments should be exchanged. We'd better > amend that to avoid confusing. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira