You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@phoenix.apache.org by "Samarth Jain (JIRA)" <ji...@apache.org> on 2017/01/17 22:30:26 UTC

[jira] [Created] (PHOENIX-3604) Support partial drop column on immutable tables with encoded data

Samarth Jain created PHOENIX-3604:
-------------------------------------

             Summary: Support partial drop column on immutable tables with encoded data
                 Key: PHOENIX-3604
                 URL: https://issues.apache.org/jira/browse/PHOENIX-3604
             Project: Phoenix
          Issue Type: Task
            Reporter: Samarth Jain


We need to support dropping a column from an encoded immutable table. For v1, we should support dropping the column only from the metadata. This way users won't be able to access that column anymore through regular phoenix queries. They still would be able to access the data through hbase until we support version v2. 

To support v2 (filed as ), we would need to add a "DROPPED" metadata column in SYSTEM.CATALOG. The compaction hook can then look for this attribute in the metadata row for the column and decide whether or not it should be replacing the contents with null. Our code in MetadataEndPointImpl too would then conditionally add this column to PTable so that any queries accessing the dropped column would fail.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)