Merge pull request #1150 from basho/bch-non-ttb-for-explain

RTS-1391: Test EXPLAIN with PBC, not TTB, which expects binaries
This commit is contained in:
Brett Hazen 2016-09-15 10:36:00 -06:00 committed by GitHub
commit f176714251

View File

@ -45,25 +45,29 @@ confirm() ->
<<"Range Scan End Key">>, <<"Range Scan End Key">>,
<<"Is End Inclusive?">>,<<"Filter">>], <<"Is End Inclusive?">>,<<"Filter">>],
[{1, [{1,
"dev1@127.0.0.1/49", <<"dev1@127.0.0.1/49">>,
"myfamily = 'wingo', myseries = 'dingo', time = 1", <<"myfamily = 'wingo', myseries = 'dingo', time = 1">>,
false, false,
"myfamily = 'wingo', myseries = 'dingo', time = 900000", <<"myfamily = 'wingo', myseries = 'dingo', time = 900000">>,
false, false,
"((myoptional = 7) OR ((mybool = true) AND (myvarchar = 'banana')))"}, <<"((myoptional = 7) OR ((mybool = true) AND (myvarchar = 'banana')))">>},
{2, {2,
"dev1@127.0.0.1/11", <<"dev1@127.0.0.1/11">>,
"myfamily = 'wingo', myseries = 'dingo', time = 900000", <<"myfamily = 'wingo', myseries = 'dingo', time = 900000">>,
false, false,
"myfamily = 'wingo', myseries = 'dingo', time = 1800000", <<"myfamily = 'wingo', myseries = 'dingo', time = 1800000">>,
false, false,
"((myoptional = 7) OR ((mybool = true) AND (myvarchar = 'banana')))"}, <<"((myoptional = 7) OR ((mybool = true) AND (myvarchar = 'banana')))">>},
{3, {3,
"dev1@127.0.0.1/59", <<"dev1@127.0.0.1/59">>,
"myfamily = 'wingo', myseries = 'dingo', time = 1800000", <<"myfamily = 'wingo', myseries = 'dingo', time = 1800000">>,
false, false,
"myfamily = 'wingo', myseries = 'dingo', time = 2000000", <<"myfamily = 'wingo', myseries = 'dingo', time = 2000000">>,
false, false,
"((myoptional = 7) OR ((mybool = true) AND (myvarchar = 'banana')))"}]}}, <<"((myoptional = 7) OR ((mybool = true) AND (myvarchar = 'banana')))">>}]}},
?assertEqual(Expected, Got), ?assertEqual(Expected, Got),
%% Now try NOT using TTB
Got2 = riakc_ts:query(Conn, Qry, [], undefined, [{use_ttb, false}]),
?assertEqual(Expected, Got2),
pass. pass.