CREATE TABLE hobs_ods_staging.cart_details (
businessid text,
createdtime timestamp,
key text,
buid text,
opid text,
status text,
type text,
updatedtime timestamp,
username text,
value blob,
valuetype text,
PRIMARY KEY (businessid, createdtime, key)
) WITH CLUSTERING ORDER BY (createdtime ASC, key 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 = 864000
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 above table but the below quaries was asking allow filtering.now create an materialized view so that the below quaries should work without allow filtering
select * from cart_details where createdtime='2023-04-23 12:20:15.823000+0530';
select * from cart_details_by_createdtime where createdtime>='2023-04-23 12:20:15.823000+0530' and createdtime<='2023-04-23 12:20:15.857000+0530';