You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Jose Martinez Poblete (JIRA)" <ji...@apache.org> on 2016/06/01 21:14:59 UTC

[jira] [Created] (CASSANDRA-11941) Add text option for cassandra cassandra-stress

Jose Martinez Poblete created CASSANDRA-11941:
-------------------------------------------------

             Summary: Add text option for cassandra cassandra-stress  
                 Key: CASSANDRA-11941
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-11941
             Project: Cassandra
          Issue Type: Improvement
          Components: Tools
         Environment: C* 2.1.13
            Reporter: Jose Martinez Poblete


Currently, we are able to specify a fixed length of a text field on a YAML file  as follows:

{noformat}
  - name: text_column
    size: fixed(100) 
{noformat}

That would fill our column with random characters

{noformat}
cqlsh:stresscql> select text_column from stresscql.msgindex limit 2;

 text_column
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
              D[\x04C[HA([o\rVae$-\x02wfC$\x00X)U\x11\x15o,zEG\\tsw)\x0b-}c\4\x15D\x0f\x1e{h[y7\x11(DIL\x12*\x01\x1fU:bRN:_T\x10\x7feN;NS\x19j?>K.q\x01dcB\x00t-nj!3;zsM1y
 ITb\x1bC4\x14>\x18R8\x14>M\x027|Oh\x007?\n\x164N'|ox9mBFM3\x16hq\x06}K.\x1aZM4MG$\r7X"\x0c\t\x1fX~Z3\x04~Q\x17$\x0eB4[xUc.X\x0e\x1fQ?:\x7fa\x0bl\x0b\x11Ug\x12TKP-;gv#)\F

(2 rows)

{noformat}

For some test cases, that would be OK

But for some other cases we would like to have the option to take words from a source like /usr/share/dict/words to make up for the content up to - or slightly less - the amount in bytes specified for the column for testing data models that require actual words separated by a space 



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