From e5bba02f13f0628d7988c2598a39e3ee133e2e55 Mon Sep 17 00:00:00 2001 From: Shinya Kawabata Date: Wed, 22 Jun 2016 17:19:59 +0900 Subject: [PATCH] Change Cassandra Schema Change Cassandra Schema to query metrics with dimensions having only key. And change measurements value column to double type to pass tempest tests. --- files/cassandra_schema.cql | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/files/cassandra_schema.cql b/files/cassandra_schema.cql index 38f0d81..1709b95 100644 --- a/files/cassandra_schema.cql +++ b/files/cassandra_schema.cql @@ -15,18 +15,18 @@ create table monasca.metric_map ( tenant_id text, region text, metric_hash blob, - metric_set set, + metric_map map, primary key ((tenant_id, region), metric_hash) ); -create index on monasca.metric_map (metric_set); +create index on monasca.metric_map (entries(metric_map)); create table monasca.measurements ( tenant_id text, region text, metric_hash blob, time_stamp timestamp, - value float, + value double, value_meta text, primary key ((tenant_id, region, metric_hash), time_stamp) );