Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-501

UDFLower is doing uppercase instead of lowercase

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 0.4.0
    • 0.4.0
    • Query Processor
    • None
    • 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;
        }
      
      }
      

      Attachments

        1. HIVE-501.1.patch
          3 kB
          Zheng Shao

        Activity

          People

            zshao Zheng Shao
            zshao Zheng Shao
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: