Details
-
Sub-task
-
Status: Open
-
Major
-
Resolution: Unresolved
-
5.0.0, 4.15.0
-
None
-
None
Description
For tables that use column encoding when we add a column to a view we need to update the encoded column qualifier counter on the base table. Currently we do this in two rpcs:
// there should only be remote mutations if we are creating a view that uses // encoded column qualifiers (the remote mutations are to update the encoded // column qualifier counter on the parent table) if (parentTable != null && tableType == PTableType.VIEW && parentTable .getEncodingScheme() != QualifierEncodingScheme.NON_ENCODED_QUALIFIERS) { response = processRemoteRegionMutations( PhoenixDatabaseMetaData.SYSTEM_CATALOG_NAME_BYTES, remoteMutations, MetaDataProtos.MutationCode.UNABLE_TO_UPDATE_PARENT_TABLE); clearParentTableFromCache(clientTimeStamp, parentTable.getSchemaName() != null ? parentTable.getSchemaName().getBytes() : ByteUtil.EMPTY_BYTE_ARRAY, parentTable.getName().getBytes()); if (response != null) { done.run(response); return; } }
Move this code to MetadataClient
Attachments
Issue Links
- is related to
-
PHOENIX-5366 Perform splittable SYSCAT actions on the client only
- Closed