[ https://issues.apache.org/jira/browse/PHOENIX-911?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13964854#comment-13964854 ]
Samarth Jain commented on PHOENIX-911: -------------------------------------- Debugged this locally. Turns out, because in Phoenix we don't support column families for primary key columns, there is no way to associate column family specific attributes with them. As a result, if a phoenix DDL has only PK columns, column family specific attributes like TTL never get passed to HBase. > DDL containing only PK cols in the column list doesn't respect HBase specific > attributes > ---------------------------------------------------------------------------------------- > > Key: PHOENIX-911 > URL: https://issues.apache.org/jira/browse/PHOENIX-911 > Project: Phoenix > Issue Type: Bug > Affects Versions: 3.0.0, 4.0.0 > Reporter: Samarth Jain > Assignee: Samarth Jain > > {code} > create table IF NOT EXISTS test12 ( > id char(1) NOT NULL, > col1 integer NOT NULL, > col2 bigint NOT NULL, > col3 bigint NOT NULL > CONSTRAINT NAME_PK PRIMARY KEY (id, col1, col2) > ) TTL=86400, SALT_BUCKETS = 16 > describe 'test12' > {NAME => '0', DATA_BLOCK_ENCODING => 'FAST_DIFF', BLOOMFILTER > > => 'NONE', REPLICATION_SCOPE => '0', VERSIONS => '3', COMPRESSI > > ON => 'NONE', MIN_VERSIONS => '0', TTL => '86400', KEEP_DELETED_ > > CELLS => 'true', BLOCKSIZE => '65536', IN_MEMORY => 'false', ENC > > ODE_ON_DISK => 'true', BLOCKCACHE => 'true'} > create table IF NOT EXISTS test12 ( > id char(1) NOT NULL, > col1 integer NOT NULL, > col2 bigint NOT NULL, > CONSTRAINT NAME_PK PRIMARY KEY (id, col1, col2) > ) TTL=86400, SALT_BUCKETS = 16 > describe 'test12' > {NAME => '0', DATA_BLOCK_ENCODING => 'FAST_DIFF', BLOOMFILTER > > => 'NONE', REPLICATION_SCOPE => '0', VERSIONS => '3', COMPRESSI > > ON => 'NONE', MIN_VERSIONS => '0', TTL => '2147483647', KEEP_DELETED_ > > CELLS => 'true', BLOCKSIZE => '65536', IN_MEMORY => 'false', ENC > > ODE_ON_DISK => 'true', BLOCKCACHE => 'true'} > {code} -- This message was sent by Atlassian JIRA (v6.2#6252)