You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@phoenix.apache.org by "James Taylor (JIRA)" <ji...@apache.org> on 2016/12/20 02:13:58 UTC

[jira] [Commented] (PHOENIX-3524) Changing the APPEND_ONLY_SCHEMA property using an ALTER TABLE does not work

    [ https://issues.apache.org/jira/browse/PHOENIX-3524?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15762962#comment-15762962 ] 

James Taylor commented on PHOENIX-3524:
---------------------------------------

Thanks, [~tdsilva]. Any way we can make this more object-oriented? Perhaps a method on the enum, like {{getValue(PTable table)}} ?
{code}
+    public Object getPTableValue(PTable table) {
+        switch (this) {
+            case IMMUTABLE_ROWS:
+                return table.isImmutableRows();
+            case MULTI_TENANT:
+                return table.isMultiTenant();
+            case DISABLE_WAL:
+                return table.isWALDisabled();
+            case SALT_BUCKETS:
+                return table.getBucketNum();
+            case DEFAULT_COLUMN_FAMILY:
+                return table.getDefaultFamilyName();
+            case TTL:
+                return null;
+            case STORE_NULLS:
+                return table.getStoreNulls();
+            case TRANSACTIONAL:
+                return table.isTransactional();
+            case UPDATE_CACHE_FREQUENCY:
+                return table.getUpdateCacheFrequency();
+            case AUTO_PARTITION_SEQ:
+                return table.getAutoPartitionSeqName();
+            case APPEND_ONLY_SCHEMA:
+                return table.isAppendOnlySchema();
+            case GUIDE_POSTS_WIDTH:
+                return null;
+        }
+        return null;
+    }
{code}

> Changing the APPEND_ONLY_SCHEMA property using an ALTER TABLE does not work
> ---------------------------------------------------------------------------
>
>                 Key: PHOENIX-3524
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-3524
>             Project: Phoenix
>          Issue Type: Bug
>            Reporter: Thomas D'Silva
>            Assignee: Thomas D'Silva
>             Fix For: 4.10.0
>
>         Attachments: PHOENIX-3524.patch
>
>




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