[ 
https://issues.apache.org/jira/browse/PIG-2506?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13264627#comment-13264627
 ] 

Dmitriy V. Ryaboy commented on PIG-2506:
----------------------------------------

Not if we want true case-insensitive matching (you don't want to define every 
variation on LoWeR)

Here's some scary (:-)) reflection code for finding all classes on the 
classpath..
http://stackoverflow.com/questions/1456930/how-do-i-read-all-classes-from-a-java-package-in-the-classpath

We could execute something along those lines at the start and every time a jar 
is registered, and do a case-insentive lookup in a generated Map. I assume 
there's a cost associated with that..

D
                
> Change LOWER and UPPER buitins so they respond to the lowercase forms 'lower' 
> and 'upper'
> -----------------------------------------------------------------------------------------
>
>                 Key: PIG-2506
>                 URL: https://issues.apache.org/jira/browse/PIG-2506
>             Project: Pig
>          Issue Type: Improvement
>          Components: internal-udfs
>    Affects Versions: 0.9.1
>            Reporter: Russell Jurney
>              Labels: simple
>
> These builtins should respond to lowercase form as well.  I am tired of 
> writing ugly upper case Pig.  My friends make fun of me.  My partner says I 
> write code just like my Dad's SQL.  Cascading fans make fun of my upper case 
> L's and P's.  I just don't want to write uppercase Pig anymore.  I just can't 
> do it.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to