Wednesday 25 July 2018

NoSQL: Create user defined type in Cassandra

n this post, I am sharing small demonstration to create CQL User Defined Data Type in Cassandra.
Using user defined data types, you can handle multiple fields into one user-defined column.
For example, You can create user-defined data type for Address related columns, in which you can specify a Street name, City name, Pincode, etc.
Create Keyspace if not exists:
Use a Keyspace:
Create user defined data type:
Create sample table:
frozen is require to define a column.
Insert sample records:
Select properties of User defined data type column:

0 comments:

Post a Comment