tests: add null collection test scenario to INSERT JSON

Refs #3664
Message-Id: <a34b9f5e8b9d7e3dd8906b559957220d74734b41.1534848313.git.sarna@scylladb.com>
This commit is contained in:
Piotr Sarna
2018-08-21 12:46:25 +02:00
committed by Avi Kivity
parent 465045368f
commit 94262cf5d0

View File

@@ -2923,6 +2923,19 @@ SEASTAR_TEST_CASE(test_insert_json_collections) {
)
}
});
e.execute_cql("INSERT INTO collections JSON '{\"a\": \"key2\"}'").get();
msg = e.execute_cql("SELECT JSON * FROM collections WHERE a = 'key2'").get0();
assert_that(msg).is_rows().with_rows({
{
utf8_type->decompose(
"{\"a\": \"key2\", "
"\"b\": null, "
"\"c\": null, "
"\"d\": null}"
)
}
});
});
}