Hive
  1. Hive
  2. HIVE-501

UDFLower is doing uppercase instead of lowercase

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 0.4.0
    • Fix Version/s: 0.4.0
    • Component/s: Query Processor
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      The current code is:

      public class UDFLower extends UDF {
      
        Text t = new Text();
        public UDFLower() {
        }
      
        public Text evaluate(Text s) {
          if (s == null) {
            return null;
          }
          t.set(s.toString().toUpperCase());
          return t;
        }
      
      }
      

        Activity

        Carl Steinbach made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Prasad Chakka made changes -
        Status Patch Available [ 10002 ] Resolved [ 5 ]
        Hadoop Flags [Reviewed]
        Fix Version/s 0.4.0 [ 12313714 ]
        Resolution Fixed [ 1 ]
        Hide
        Prasad Chakka added a comment -

        Thanks Zheng!

        Show
        Prasad Chakka added a comment - Thanks Zheng!
        Hide
        Prasad Chakka added a comment -

        running tests

        Show
        Prasad Chakka added a comment - running tests
        Zheng Shao made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Zheng Shao made changes -
        Field Original Value New Value
        Attachment HIVE-501.1.patch [ 12408648 ]
        Zheng Shao created issue -

          People

          • Assignee:
            Zheng Shao
            Reporter:
            Zheng Shao
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development