phoenix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From twdsilva <...@git.apache.org>
Subject [GitHub] phoenix pull request #313: PHOENIX-4799 Write cells using checkAndMutate to ...
Date Wed, 01 Aug 2018 02:19:53 GMT
Github user twdsilva commented on a diff in the pull request:

    https://github.com/apache/phoenix/pull/313#discussion_r206737111
  
    --- Diff: phoenix-core/src/main/java/org/apache/phoenix/query/QueryConstants.java ---
    @@ -355,5 +355,19 @@
     			+ "," + COLUMN_NAME + "," + COLUMN_FAMILY + "))\n" + HConstants.VERSIONS + "=%s,\n"
     			+ HColumnDescriptor.KEEP_DELETED_CELLS + "=%s,\n" + PhoenixDatabaseMetaData.TRANSACTIONAL
+ "="
     			+ Boolean.FALSE;
    +	
    +	 public static final String CREATE_MUTEX_METADTA =
    +	            "CREATE IMMUTABLE TABLE " + SYSTEM_CATALOG_SCHEMA + ".\"" + SYSTEM_MUTEX_TABLE_NAME
+ "\"(\n" +
    +	            // Pk columns
    +	            TENANT_ID + " VARCHAR NULL," +
    +	            TABLE_SCHEM + " VARCHAR NULL," +
    +	            TABLE_NAME + " VARCHAR NOT NULL," +
    +	            COLUMN_NAME + " VARCHAR NULL," + // null for table row
    +	            COLUMN_FAMILY + " VARCHAR NULL " + // using for CF to uniqueness for columns
    +	            "CONSTRAINT " + SYSTEM_TABLE_PK_NAME + " PRIMARY KEY (" + TENANT_ID + ","
    +	            + TABLE_SCHEM + "," + TABLE_NAME + "," + COLUMN_NAME + "," + COLUMN_FAMILY
+ "))\n" +
    +	            HConstants.VERSIONS + "=%s,\n" +
    +	            HColumnDescriptor.KEEP_DELETED_CELLS + "=%s,\n" +
    +	            PhoenixDatabaseMetaData.TRANSACTIONAL + "=" + Boolean.FALSE;
    --- End diff --
    
    For clusters that use namespace mapping and that map the phoenix system tables to the
SYSTEM namespace, we want to be able to use the GRANT/REVOKE statements to grant RW access
to the SYSTEM:MUTEX table.


---

Mime
View raw message