You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Zheng Shao (JIRA)" <ji...@apache.org> on 2009/05/21 03:33:45 UTC

[jira] Created: (HIVE-501) UDFLower is doing uppercase instead of lowercase

UDFLower is doing uppercase instead of lowercase
------------------------------------------------

                 Key: HIVE-501
                 URL: https://issues.apache.org/jira/browse/HIVE-501
             Project: Hadoop Hive
          Issue Type: Bug
          Components: Query Processor
    Affects Versions: 0.4.0
            Reporter: Zheng Shao
            Assignee: Zheng Shao
            Priority: Critical


The current code is:
{code}
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;
  }

}
{code}


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HIVE-501) UDFLower is doing uppercase instead of lowercase

Posted by "Prasad Chakka (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-501?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Prasad Chakka updated HIVE-501:
-------------------------------

       Resolution: Fixed
    Fix Version/s: 0.4.0
     Hadoop Flags: [Reviewed]
           Status: Resolved  (was: Patch Available)

Thanks Zheng!

> UDFLower is doing uppercase instead of lowercase
> ------------------------------------------------
>
>                 Key: HIVE-501
>                 URL: https://issues.apache.org/jira/browse/HIVE-501
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Query Processor
>    Affects Versions: 0.4.0
>            Reporter: Zheng Shao
>            Assignee: Zheng Shao
>            Priority: Critical
>             Fix For: 0.4.0
>
>         Attachments: HIVE-501.1.patch
>
>
> The current code is:
> {code}
> 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;
>   }
> }
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HIVE-501) UDFLower is doing uppercase instead of lowercase

Posted by "Prasad Chakka (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-501?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12711450#action_12711450 ] 

Prasad Chakka commented on HIVE-501:
------------------------------------

running tests

> UDFLower is doing uppercase instead of lowercase
> ------------------------------------------------
>
>                 Key: HIVE-501
>                 URL: https://issues.apache.org/jira/browse/HIVE-501
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Query Processor
>    Affects Versions: 0.4.0
>            Reporter: Zheng Shao
>            Assignee: Zheng Shao
>            Priority: Critical
>         Attachments: HIVE-501.1.patch
>
>
> The current code is:
> {code}
> 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;
>   }
> }
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HIVE-501) UDFLower is doing uppercase instead of lowercase

Posted by "Zheng Shao (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-501?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Zheng Shao updated HIVE-501:
----------------------------

    Attachment: HIVE-501.1.patch

> UDFLower is doing uppercase instead of lowercase
> ------------------------------------------------
>
>                 Key: HIVE-501
>                 URL: https://issues.apache.org/jira/browse/HIVE-501
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Query Processor
>    Affects Versions: 0.4.0
>            Reporter: Zheng Shao
>            Assignee: Zheng Shao
>            Priority: Critical
>         Attachments: HIVE-501.1.patch
>
>
> The current code is:
> {code}
> 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;
>   }
> }
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HIVE-501) UDFLower is doing uppercase instead of lowercase

Posted by "Zheng Shao (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-501?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Zheng Shao updated HIVE-501:
----------------------------

    Status: Patch Available  (was: Open)

> UDFLower is doing uppercase instead of lowercase
> ------------------------------------------------
>
>                 Key: HIVE-501
>                 URL: https://issues.apache.org/jira/browse/HIVE-501
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Query Processor
>    Affects Versions: 0.4.0
>            Reporter: Zheng Shao
>            Assignee: Zheng Shao
>            Priority: Critical
>         Attachments: HIVE-501.1.patch
>
>
> The current code is:
> {code}
> 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;
>   }
> }
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.