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:
@@ -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");
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user