cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kumar Ranjan <winnerd...@gmail.com>
Subject Issues while fetching data with pycassa get for super columns
Date Fri, 13 Dec 2013 20:24:17 GMT
Hi Folks - I have having issue fetch data using pycassa get() function. I
have copied the CF schema and my code is below. This query returns me just
this

Results: {u'narrativebuddieswin': ['609548930995445799_752368319',
'609549303525138481_752368319', '610162034020180814_752368319',
'610162805856002905_752368319', '610163571417146213_752368319',
'610165900312830861_752368319']}

none of the subcolumns are returned for above super column ??? Please help..


CODE: ----------------->>>

if start:

    res_rows = col_fam.get(key, column_count=count,
column_start=start, include_timestamp=True, include_ttl=True, )

else:

    res_rows = col_fam.get(key, column_count=count, include_timestamp=True,
include_ttl=True,)

return res_rows




CF Schema: -------->>>

'Twitter_Instagram':

CfDef(comment='',

      key_validation_class='org.apache.cassandra.db.marshal.UTF8Type',

      min_compaction_threshold=4,

      key_cache_save_period_in_seconds=None,

      gc_grace_seconds=864000,

      default_validation_class='org.apache.cassandra.db.marshal.UTF8Type',

      max_compaction_threshold=32,

      read_repair_chance=0.10000000000000001,

      compression_options={'sstable_compression':
'org.apache.cassandra.io.compress.SnappyCompressor'},

      bloom_filter_fp_chance=None,

      id=None,

      keyspace='Narrative',

      key_cache_size=None,

      replicate_on_write=True,

      subcomparator_type='org.apache.cassandra.db.marshal.BytesType',

      merge_shards_chance=None,

      row_cache_provider=None,

      row_cache_save_period_in_seconds=None,

      column_type='Super',

      memtable_throughput_in_mb=None,

      memtable_flush_after_mins=None,


column_metadata={‘

        'expanded_url': ColumnDef(index_type=None, index_name=None,
validation_class='org.apache.cassandra.db.marshal.UTF8Type',
name='expanded_url', index_options=None),

        'favorite': ColumnDef(index_type=None, index_name=None,
validation_class='org.apache.cassandra.db.marshal.IntegerType',
name='favorite', index_options=None),

        'retweet': ColumnDef(index_type=None, index_name=None,
validation_class='org.apache.cassandra.db.marshal.IntegerType',
name='retweet', index_options=None),

        'iid': ColumnDef(index_type=None, index_name=None,
validation_class='org.apache.cassandra.db.marshal.UTF8Type', name='iid',
index_options=None),

        'screen_name': ColumnDef(index_type=None, index_name=None,
validation_class='org.apache.cassandra.db.marshal.UTF8Type',
name='screen_name', index_options=None),

        'embedly_data': ColumnDef(index_type=None, index_name=None,
validation_class='org.apache.cassandra.db.marshal.BytesType',
name='embedly_data', index_options=None),

        'created_date': ColumnDef(index_type=None, index_name=None,
validation_class='org.apache.cassandra.db.marshal.UTF8Type',
name='created_date', index_options=None),

        'tid': ColumnDef(index_type=None, index_name=None,
validation_class='org.apache.cassandra.db.marshal.UTF8Type', name='tid',
index_options=None),

        'score': ColumnDef(index_type=None, index_name=None,
validation_class='org.apache.cassandra.db.marshal.IntegerType',
name='score', index_options=None),

        'approved': ColumnDef(index_type=None, index_name=None,
validation_class='org.apache.cassandra.db.marshal.UTF8Type',
name='approved', index_options=None),

        'likes': ColumnDef(index_type=None, index_name=None,
validation_class='org.apache.cassandra.db.marshal.IntegerType',
name='likes', index_options=None)},


key_alias=None,

dclocal_read_repair_chance=0.0,

name='Twitter_Instagram',

compaction_strategy_options={},

row_cache_keys_to_save=None,

compaction_strategy='org.apache.cassandra.db.compaction.SizeTieredCompactionStrategy',

memtable_operations_in_millions=None,

caching='KEYS_ONLY',

comparator_type='org.apache.cassandra.db.marshal.BytesType',

row_cache_size=None),

Mime
View raw message