Uploaded image for project: 'Apache Cassandra'
  1. Apache Cassandra
  2. CASSANDRA-11602

Materialized View Does Not Have Static Columns

    XMLWordPrintableJSON

Details

    • Normal

    Description

      CREATE TABLE "team" (teamname text, manager text, location text static, PRIMARY KEY ((teamname), manager));

      INSERT INTO team (teamname, manager, location) VALUES ('Red Bull1', 'Ricciardo11', 'Australian');
      INSERT INTO team (teamname, manager, location) VALUES ('Red Bull2', 'Ricciardo12', 'Australian');
      INSERT INTO team (teamname, manager, location) VALUES ('Red Bull2', 'Ricciardo13', 'Australian');

      select * From team;

      CREATE MATERIALIZED VIEW IF NOT EXISTS "teamMV" AS SELECT "teamname", "manager", "location" FROM "team" WHERE "teamname" IS NOT NULL AND "manager" is NOT NULL AND "location" is NOT NULL PRIMARY KEY("manager", "teamname");

      select * from "teamMV";

      The teamMV does not have "location" column. Static columns are not getting created in MV.

      Attachments

        Activity

          People

            carlyeks Carl Yeksigian
            Ravishankar_Rajendran@yahoo.com Ravishankar Rajendran
            Carl Yeksigian
            Sylvain Lebresne
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: