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/01/24 21:28:39 UTC
[jira] [Updated] (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
[ https://issues.apache.org/jira/browse/PHOENIX-2235?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
James Taylor updated PHOENIX-2235:
----------------------------------
Labels: pherf (was: )
> [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
> Labels: pherf
>
> 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)