You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@phoenix.apache.org by "Jan Fernando (JIRA)" <ji...@apache.org> on 2015/09/05 00:33:45 UTC

[jira] [Created] (PHOENIX-2235) [Pherf] Allow users to specify a postfix as well as a prefix for CHAR data types and allow sequence placement to be configurable

Jan Fernando created PHOENIX-2235:
-------------------------------------

             Summary: [Pherf] Allow users to specify a postfix as well as a prefix for CHAR data types and allow sequence placement to be configurable
                 Key: PHOENIX-2235
                 URL: https://issues.apache.org/jira/browse/PHOENIX-2235
             Project: Phoenix
          Issue Type: Bug
            Reporter: Jan Fernando


When building char data with Pherf it would be with a prefix and sequential values currently Pherf appends the sequence value to the prefix and generates a random string to pad the string to the required length.

e.g. myprefix123rndstring

1) It would be great to be able to define a postfix that would be used instead of a random string.

        <column>
            <type>CHAR</type>
            <userDefined>true</userDefined>
            <dataSequence>SEQUENTIAL</dataSequence>
            <length>8</length>
            <name>ID</name>
            <prefix>myprefix</prefix>
            <postfix>0</postfix>
        </column>

This would generate the following for example: myprefix12300000
The postfix would repeated and/or truncated to pad the string correctly.

2) It would really useful additional to control whether the sequence appears after the prefix or postfix. 

e.g. to generate myprefixrndstring123 instead we could configure the column to use an additional position attribute on datasequence.

         <column>
            <type>CHAR</type>
            <userDefined>true</userDefined>
            <dataSequence position="postfix">SEQUENTIAL</dataSequence>
            <length>8</length>
            <name>ID</name>
            <prefix>myprefix</prefix>
        </column>




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