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

    https://github.com/apache/phoenix/pull/12#discussion_r17618270
  
    --- Diff: 
phoenix-core/src/main/java/org/apache/phoenix/coprocessor/MetaDataEndpointImpl.java
 ---
    @@ -667,12 +688,101 @@ private PTable getTable(RegionScanner scanner, long 
clientTimeStamp, long tableT
               } else {
                   addColumnToTable(results, colName, famName, colKeyValues, 
columns, saltBucketNum != null);
               }
    +        }        
    +        byte[] tenIdBytes = ByteUtil.EMPTY_BYTE_ARRAY;
    +        if (tenantId != null) {
    +            tenIdBytes = tenantId.getBytes();
             }
    -
    +        byte[] schNameInBytes = ByteUtil.EMPTY_BYTE_ARRAY;
    --- End diff --
    
    Get rid of this if statement. You know the schemaName of the stats table. 
It's a system table, so the schema name is QueryConstants.SYSTEM_SCHEMA_NAME. 
Please add a constant for the byte[] version of this in QueryConstants if one 
doesn't exist already.


---
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