From 3600a096bea0d7969f3333cbb1fdcffbe226d844 Mon Sep 17 00:00:00 2001 From: Nadav Har'El Date: Sun, 5 May 2019 18:54:31 +0300 Subject: [PATCH] alternator: fix JSON in DescribeTable response The structure's name in DescribeTable's output is supposed to be called "Table", not "TableDescription". Putting in the wrong place caused the driver's table creation waiters to fail. Signed-off-by: Nadav Har'El --- alternator/executor.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/alternator/executor.cc b/alternator/executor.cc index 40b59bb1bf..4eb9f1af88 100644 --- a/alternator/executor.cc +++ b/alternator/executor.cc @@ -147,7 +147,7 @@ future executor::describe_table(sstring content) { // maybe for TableId or TableArn use schema.id().to_sstring().c_str(); // Of course, the whole schema is missing! Json::Value response(Json::objectValue); - response["TableDescription"] = std::move(table_description); + response["Table"] = std::move(table_description); elogger.trace("returning {}", response.toStyledString()); return make_ready_future(make_jsonable(std::move(response))); }