Skip to content

JSON projections fail on Azure SQL #36630

@AndriySvyryd

Description

@AndriySvyryd

Several tests, like AdHocJsonQuerySqlServerJsonTypeTest.Contains_on_nested_collection_with_init_only_navigation and ComplexJsonCollectionSqlServerTest.Count are failing with

JSON data type cannot be used in OpenJson function.

SELECT [r].[Id], [r].[Name], [r].[OptionalRelated], [r].[RelatedCollection], [r].[RequiredRelated]
FROM [RootEntity] AS [r]
WHERE (
    SELECT COUNT(*)
    FROM OPENJSON([r].[RelatedCollection], '$') AS [r0]) = 2

Metadata

Metadata

Assignees

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions