I created a table, university_by_person, as the following:
CREATE TABLE university_by_person (
person_name frozen<name>,
university_id uuid,
university_name text,
university_phone text,
university_address frozen<address>,
PRIMARY KEY ((person_name), university_id)
) WITH CLUSTERING ORDER BY (university_id ASC)
AND comment = 'Q1. Find universities(including university info) near a person';
And I also self-defined the TYPE name and address as the following:
CREATE TYPE name (
first_name text,
last_name text
)
CREATE TYPE address (
street text,
city text,
state_or_province text,
postal_code text,
country text
)
However, now when I tried to insert a record into this table, and hit ENTER, the cmd prompt only returned '...'. It seems the cmd thought my command was not finished? But I did have a ';' at the end. How could I fix it here?
My insert command:
INSERT INTO university_by_person
(person_name, university_id, university_name, university_phone, university_address)
VALUES (
{first_name: 'Meryl', last_name: 'Streep'},
e7ae5cf3-d358-4d99-b900-85902fda9bb0,
'University of Toronto',
'416-963-0086',
{street: '27 King's College Cir', city: 'Toronto', state_or_province: 'Ontario', postal_code: 'M5S 1A1', country: 'Canada'}
);