Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-9301

can not insert properly for compound primary key

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Invalid
    • None
    • None
    • None
    • cassandra 2.1.3, oracle jdk 1.7, linux

    • Normal

    Description

      Schema:

      CREATE KEYSPACE tick WITH replication = {
      'class': 'SimpleStrategy',
      'replication_factor': '2'
      };
      
      CREATE TABLE trade (
          date_symbol text,
          symbol text,
          signal_time bigint,
          signal_time_text text,
          bidask int,
          price double,
          quantity bigint,
          order_no bigint,
          PRIMARY KEY (date_symbol, signal_time)
          ) WITH
          compaction={'sstable_size_in_mb': '160', 'class': 'LeveledCompactionStrategy'} AND
          compression={'sstable_compression': 'LZ4Compressor'};
      

      Tried many times for 3 million data and same data are not inserted. Increase data frequency but result dont change.

      sample data at https://drive.google.com/file/d/0BzHZ-rv0D5JxSDRpblFQcUdRaVU/view?usp=sharing

      Attachments

        Activity

          People

            Unassigned Unassigned
            ksaritek koray sariteke
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: