Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
1.7 kB
2
Indexable
Never
CREATE TABLE hobs_ods_staging.hos_event_logs (
    hosel_date date,
    hosel_event_date timestamp,
    hosel_event_seq uuid,
    hosel_bu_id text,
    hosel_event_clv_attr_status boolean,
    hosel_event_clv_value_status boolean,
    hosel_event_data text,
    hosel_event_type text,
    hosel_op_id text,
    hosel_trigged_by text,
    hosel_triggered_by text,
    hosel_enriched_data map<text, text>,
    hosel_entity_enriched_data map<text, text>,
    hosel_entity_enricher_status map<text, text>,
    hosel_entity_staging_status map<text, text>,
    hosel_event_clv_status map<text, text>,
    hosel_event_status map<text, text>,
    PRIMARY KEY (hosel_date, hosel_event_date, hosel_event_seq)
) WITH CLUSTERING ORDER BY (hosel_event_date ASC, hosel_event_seq ASC)
    AND additional_write_policy = '99p'
    AND bloom_filter_fp_chance = 0.01
    AND caching = {'keys': 'ALL', 'rows_per_partition': 'NONE'}
    AND cdc = false
    AND comment = ''
    AND compaction = {'class': 'org.apache.cassandra.db.compaction.SizeTieredCompactionStrategy', 'max_threshold': '32', 'min_threshold': '4'}
    AND compression = {'chunk_length_in_kb': '16', 'class': 'org.apache.cassandra.io.compress.LZ4Compressor'}
    AND memtable = 'default'
    AND crc_check_chance = 1.0
    AND default_time_to_live = 0
    AND extensions = {}
    AND gc_grace_seconds = 100
    AND max_index_interval = 2048
    AND memtable_flush_period_in_ms = 0
    AND min_index_interval = 128
    AND read_repair = 'BLOCKING'
    AND speculative_retry = '99p';


i have created table in cassandra now i want update gc_grace_seconds = 100 to gc_grace_seconds = 300 how can i change it without distrubing table data and strcture