phoenix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ramkrish86 <...@git.apache.org>
Subject [GitHub] phoenix pull request: Phoenix-180
Date Thu, 11 Sep 2014 09:19:42 GMT
Github user ramkrish86 commented on a diff in the pull request:

    https://github.com/apache/phoenix/pull/12#discussion_r17411419
  
    --- Diff: phoenix-core/src/main/java/org/apache/phoenix/query/QueryConstants.java ---
    @@ -220,6 +227,23 @@
                 HConstants.VERSIONS + "=" + MetaDataProtocol.DEFAULT_MAX_META_DATA_VERSIONS
+ ",\n" +
                 HTableDescriptor.SPLIT_POLICY + "='" + MetaDataSplitPolicy.class.getName()
+ "'\n";
         
    +    public static final String CREATE_STATS_TABLE_METADATA = 
    +            "CREATE TABLE " + SYSTEM_CATALOG_SCHEMA + ".\"" + SYSTEM_STATS_TABLE + "\"(\n"
+
    +            // PK columns
    +            TABLE_SCHEM + " VARCHAR NULL," +
    +            TABLE_NAME  + " VARCHAR NOT NULL," +
    +            COLUMN_NAME + " VARCHAR," +
    +            REGION_NAME + " VARCHAR," +
    +            GUIDE_POSTS  + " VARBINARY," +
    --- End diff --
    
    Infact as no upsert is being done on the server side this may not be needed.  But any
way defining as VARBINARY is fine because any way we are doing Table.put() on the client side
and we need byte[].  So we do VARBINARY_ARRAY.toBytes().  


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message