Skip to content

Latest commit

 

History

History
53 lines (43 loc) · 1.54 KB

step3-cassandra.md

File metadata and controls

53 lines (43 loc) · 1.54 KB
Exercise 3.1: User Defined Types (UDTs) ℹ️ For technical support, please contact us via email.
⬅️ Back Step 3 of 4 Next ➡️
Create a UDT and add new columns to the table

✅ Create the encoding UDT:

CREATE TYPE video_encoding (
  bit_rates SET<TEXT>,
  encoding TEXT,
  height INT,
  width INT 
);

✅ Alter the videos table to add columns tags and encoding:

ALTER TABLE videos ADD tags SET<TEXT>;
ALTER TABLE videos ADD encoding FROZEN<video_encoding>;
⬅️ Back Next ➡️