tests: add null collection test scenario to INSERT JSON
Refs #3664 Message-Id: <a34b9f5e8b9d7e3dd8906b559957220d74734b41.1534848313.git.sarna@scylladb.com>
This commit is contained in:
@@ -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}"
|
||||
)
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user