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

UDFLower is doing uppercase instead of lowercase

    Details

    • Type: Bug
    • Status: Closed
    • Priority: 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;
        }
      
      }
      

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: