mirror of
https://github.com/valitydev/riak_test.git
synced 2024-11-06 08:35:22 +00:00
Add more complicated OR and parentheses to ts_simple_explain_query
This commit is contained in:
parent
ebea1381e1
commit
1de4565130
@ -34,7 +34,7 @@ confirm() ->
|
||||
ts_util:create_and_activate_bucket_type(ClusterConn, DDL, "MyTable"),
|
||||
Qry = "EXPLAIN SELECT myint, myfloat, myoptional FROM MyTable WHERE "
|
||||
"myfamily='wingo' AND myseries='dingo' AND time > 0 AND time < 2000000 "
|
||||
"AND mybool=true AND myvarchar='banana'",
|
||||
"AND (mybool=true OR myvarchar='banana')",
|
||||
|
||||
Got = ts_util:single_query(Conn, Qry),
|
||||
Expected =
|
||||
@ -47,18 +47,18 @@ confirm() ->
|
||||
false,
|
||||
"myfamily = 'wingo', myseries = 'dingo', time = 900000",
|
||||
false,
|
||||
"mybool = true AND myvarchar = 'banana'"},
|
||||
"mybool = true OR myvarchar = 'banana'"},
|
||||
{2,
|
||||
"myfamily = 'wingo', myseries = 'dingo', time = 900000",
|
||||
false,
|
||||
"myfamily = 'wingo', myseries = 'dingo', time = 1800000",
|
||||
false,
|
||||
"mybool = true AND myvarchar = 'banana'"},
|
||||
"mybool = true OR myvarchar = 'banana'"},
|
||||
{3,
|
||||
"myfamily = 'wingo', myseries = 'dingo', time = 1800000",
|
||||
false,
|
||||
"myfamily = 'wingo', myseries = 'dingo', time = 2000000",
|
||||
false,
|
||||
"mybool = true AND myvarchar = 'banana'"}]}},
|
||||
"mybool = true OR myvarchar = 'banana'"}]}},
|
||||
?assertEqual(Expected, Got),
|
||||
pass.
|
||||
|
Loading…
Reference in New Issue
Block a user