Hi Stack,

Yes, this was merged in today after review. I am sorry I did not include
the commit id in the close message. I think JIRA/Git integration may have
been confsed since I had multiple JIRAs in one commit to be able to
automatically link the JIRA to the commit.

About the writeup, I don't think we have an existing one. I will add one to
the JIRA in the next few hours.

Thanks
Suresh



On Wed, Aug 26, 2015 at 10:05 AM, stack (JIRA) <[email protected]> wrote:

>
>     [
> https://issues.apache.org/jira/browse/TRAFODION-1462?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14713622#comment-14713622
> ]
>
> stack commented on TRAFODION-1462:
> ----------------------------------
>
> This was done? Is there an associated commit? Is there a writeup on what
> hbase serialization is [~suresh_subbiah]? Thanks.
>
> > Enable HBase serialization by default
> > -------------------------------------
> >
> >                 Key: TRAFODION-1462
> >                 URL:
> https://issues.apache.org/jira/browse/TRAFODION-1462
> >             Project: Apache Trafodion
> >          Issue Type: Improvement
> >          Components: sql-general
> >    Affects Versions: 1.0 (pre-incubation)
> >            Reporter: Suresh Subbiah
> >            Assignee: Suresh Subbiah
> >             Fix For: 2.0-incubating
> >
> >   Original Estimate: 168h
> >  Remaining Estimate: 168h
> >
> > Currently when a Trafodion table is created, by default data stored in
> HBase tables is not serialized (i.e. not encoded or stored in a form that
> will allow evaluation of range predicates with HBase Filters executing in
> the RegionServer proceses). Trafodion did support storing Trafodion data in
> such an encoded format, but the feature had to be explicitly enabled with
> > cqd HBASE_SERIALIZATION 'ON' ;
> > With this change the default setting for the cqd has been changed to ON.
> Tables will now be created by default with columns having the serialized
> attribute. This can be verified by using the showddl command. For example
> > >>showddl customer_demographics ;
> > CREATE TABLE TRAFODION.SCH.CUSTOMER_DEMOGRAPHICS
> >   (
> >     CD_DEMO_SK                       INT NO DEFAULT NOT NULL NOT
> DROPPABLE
> >       SERIALIZED
> >   , CD_GENDER                        CHAR(1) CHARACTER SET ISO88591
> COLLATE
> >       DEFAULT DEFAULT NULL SERIALIZED
> >   , CD_MARITAL_STATUS                CHAR(1) CHARACTER SET ISO88591
> COLLATE
> >       DEFAULT DEFAULT NULL SERIALIZED
> >   , CD_EDUCATION_STATUS              CHAR(20) CHARACTER SET ISO88591
> COLLATE
> >       DEFAULT DEFAULT NULL SERIALIZED
> >   , CD_PURCHASE_ESTIMATE             INT DEFAULT NULL SERIALIZED
> >   , CD_CREDIT_RATING                 CHAR(10) CHARACTER SET ISO88591
> COLLATE
> >       DEFAULT DEFAULT NULL SERIALIZED
> >   , CD_DEP_COUNT                     INT DEFAULT NULL SERIALIZED
> >   , CD_DEP_EMPLOYED_COUNT            INT DEFAULT NULL SERIALIZED
> >   , CD_DEP_COLLEGE_COUNT             INT DEFAULT NULL SERIALIZED
> >   )
> >   STORE BY (CD_DEMO_SK ASC)
> > ;
> > CREATE INDEX CD_DEP_COLLEGE_COUNT_IDX ON
> TRAFODION.SCH.CUSTOMER_DEMOGRAPHICS
> >   (
> >     CD_DEP_COLLEGE_COUNT ASC
> >   )
> > ;
> > CREATE INDEX CD_DEP_COUNT_IDX ON TRAFODION.SCH.CUSTOMER_DEMOGRAPHICS
> >   (
> >     CD_DEP_COUNT ASC
> >   )
> > ;
> > The create table statements used for this table is
> > create table customer_demographics
> > (
> >  cd_demo_sk int not null,
> >  cd_gender char(1),
> >  cd_marital_status char(1),
> >  cd_education_status char(20),
> >  cd_purchase_estimate int,
> >  cd_credit_rating char(10),
> >  cd_dep_count int,
> >  cd_dep_employed_count int,
> >  cd_dep_college_count int
> > ) store by (cd_demo_sk);
> > create index cd_dep_count_IDX on customer_demographics(cd_dep_count);
> > create index cd_dep_college_count_IDX on
> customer_demographics(cd_dep_college_count);
> > The indexes are also serialized though showddl does not show it.
> > Having a column as serialized allows data to be stored in a format
> suitable for using HBase filters. However to get HBase filters in the
> execution plan for a SQL query, the cqd HBASE_FILTER_PREDS must be set to
> 'ON'. This cqd still defaults to 'OFF' as in some cases it is better to
> evaluate the predicate in the Trafodion/SQL layer, rather than the
> RegionServers (since Trafodion can use more ESPs to further parallelize
> predicate evaulation).
>
>
>
> --
> This message was sent by Atlassian JIRA
> (v6.3.4#6332)
>

Reply via email to