Cassandra\SchemaMetadataIntegrationTest::createPrimaryKeyMaterializedView PHP Method

createPrimaryKeyMaterializedView() protected method

Create the primary key materialized view using the second table
    protected function createPrimaryKeyMaterializedView()
    {
        $statement = new SimpleStatement("CREATE MATERIALIZED VIEW primary_key AS " . "SELECT key1 FROM {$this->tableNamePrefix}_2 WHERE key2 IS NOT NULL AND value1 IS NOT NULL " . "PRIMARY KEY((value1, key2), key1)");
        $this->session->execute($statement);
    }