I have created UDT in Cassandra
CREATE type starter.random_data_demo(
destination_wise_count map<text,text>
);
then used this udt in my table
CREATE TABLE demo(
field_data FROZEN<random_data_demo> PRIMARY KEY
);
when i hit query for elasticsearch mapping receives an error
query:-
curl -XPUT -H 'Content-Type:application/json' "http://localhost:9200/demo" -d '{
"settings": { "keyspace":"starter" },
"mappings": {
"demo" : {
"discover" : ".*"
}
}
}'
error:-
"type":"mapper_parsing_exception","reason":"Failed to execute query:null : Field \"destination_wise_count\" with type map<text, text> does not match type frozen<\"testing.demo_field_data_destination_wise_count\">"}]