fixed ts_simple_describe_table test to match change in the column header "Primary Key" => "Partition Key" and addition of "Sort Order" column.

This commit is contained in:
James Gorlick 2016-11-17 11:16:05 -08:00
parent c73713d129
commit 3128eda798

View File

@ -33,12 +33,12 @@ confirm() ->
DDL = ts_data:get_ddl(),
Qry = "DESCRIBE " ++ Table,
Expected =
{ok, {[<<"Column">>,<<"Type">>,<<"Is Null">>,<<"Primary Key">>, <<"Local Key">>, <<"Interval">>, <<"Unit">>],
[{<<"myfamily">>, <<"varchar">>, false, 1, 1, [], []},
{<<"myseries">>, <<"varchar">>, false, 2, 2, [], []},
{<<"time">>, <<"timestamp">>, false, 3, 3, 15, <<"m">>},
{<<"weather">>, <<"varchar">>, false, [], [], [], []},
{<<"temperature">>,<<"double">>, true, [], [], [], []}]}},
{ok, {[<<"Column">>,<<"Type">>,<<"Nullable">>,<<"Partition Key">>, <<"Local Key">>, <<"Interval">>, <<"Unit">>, <<"Sort Order">>],
[{<<"myfamily">>, <<"varchar">>, false, 1, 1, [], [], []},
{<<"myseries">>, <<"varchar">>, false, 2, 2, [], [], []},
{<<"time">>, <<"timestamp">>, false, 3, 3, 15, <<"m">>, []},
{<<"weather">>, <<"varchar">>, false, [], [], [], [], []},
{<<"temperature">>,<<"double">>, true, [], [], [], [], []}]}},
Cluster = ts_setup:start_cluster(1),
ts_setup:create_bucket_type(Cluster, DDL, Table),