For example, test PrimitiveCollectionsQueryCosmosTest.Project_inline_collection:
public virtual Task Project_inline_collection(bool async)
=> AssertQuery(
async,
ss => ss.Set<PrimitiveCollectionsEntity>().Select(x => new[] { x.String, "foo" }),
elementAsserter: (e, a) => AssertCollection(e, a, ordered: true),
assertOrder: true);
Current SQL:
SELECT VALUE {"c" : [c["String"], "foo"]}
FROM root c
WHERE (c["Discriminator"] = "PrimitiveCollectionsEntity")
We should have SELECT VALUE [c["String"], "foo"] instead.
For example, test PrimitiveCollectionsQueryCosmosTest.Project_inline_collection:
Current SQL:
We should have
SELECT VALUE [c["String"], "foo"]instead.