Relationship -> child cluster key to parent column
mjhatamy opened this issue · comments
Hi,
There are situations where we "Partition key" may point to a column in the parent field.
For example:
CREATE TABLE IF NOT EXISTS "Default"."UserCredentials" (
"email" text,
"password" text,
"user_id" text,
PRIMARY KEY ("email")
)
CREATE TABLE IF NOT EXISTS "GixClients"."UserProfile" (
"user_id" text,
"first_name" text,
"last_name" text,
PRIMARY KEY ("user_id")
)
Here the user_id column is partition key in UserProfile table and a normal column in UserCredentials Table.
It must allow it.
In Cassandra, All relationships are actually virtual. There is no JOIN.
We may have multiple similar fields. Sometimes a "Cluster Column" points to a normal field in other Table normal column.
Thanks in advance.
Made a mistake....
We have to connect it in opposite direction.... My mistake...