Github user JamesRTaylor commented on a diff in the pull request:

    https://github.com/apache/incubator-phoenix/pull/27#discussion_r11697425
  
    --- Diff: 
phoenix-core/src/main/java/org/apache/phoenix/util/SchemaUtil.java ---
    @@ -553,4 +554,14 @@ public static short getMaxKeySeq(PTable table) {
             }
             return (short)(table.getPKColumns().size() - offset);
         }
    +    
    +    public static String getEscapedColumnFamily(String fullColumnName) {
    +        int index = fullColumnName.indexOf(QueryConstants.NAME_SEPARATOR);
    +        if (index < 0) {
    +            return fullColumnName; 
    +        }
    +        String columnFamily = fullColumnName.substring(0,index);
    +        String columnName = fullColumnName.substring(index+1);
    +        return ESCAPE_CHARACTER + columnFamily + ESCAPE_CHARACTER + 
QueryConstants.NAME_SEPARATOR + columnName ;
    --- End diff --
    
    I think you'd want to escape the columnName as well (i.e. surround 
columnName with ESCAPE_CHARACTER as well), and document that it's case 
sensitive in your user-level documentation. Probably best to rename this 
function then too: getEscapedFullColumnName


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to