hackolade / Cassandra

Hackolade(https://hackolade.com) plugin for Cassandra

Home Page:https://github.com/hackolade/Cassandra/releases/latest

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

Screen Shot 2020-11-21 at 12 57 34 AM

Made a mistake....
We have to connect it in opposite direction.... My mistake...