tests/cql_query_test: Fix view creation in test_duration_restrictions()

The materialized view created in test_duration_restriction() restricts
on a non-PK column. Since Scylla's ALLOW FILTERING and secondary index
validation path is broken, once we start to do secondary index queries,
query processor thinks there's a secondary index backing that non-PK
column and fails because it's unable to find such column.

Fix up the view to only trigger the duration type validation error we're
interested in here.
This commit is contained in:
Pekka Enberg
2017-11-03 10:10:43 +02:00
parent c243a0c8fc
commit 3c90607988

View File

@@ -1205,7 +1205,6 @@ SEASTAR_TEST_CASE(test_duration_restrictions) {
env,
"create materialized view my_mv as"
" select * from my_table0 "
" where name = 'abc' "
" primary key (key, span);",
"Cannot use Duration column 'span' in PRIMARY KEY of materialized view");
});