Symptoms
Assume that you use Microsoft SQL Server 2017 on Linux or Windows. When you run a query that contains a SELECT DISTINCT statement on a graph column, you receive an error message that resembles the following:
Msg 8624, Level 16, State 17, Line 2
Internal Query Processor Error: The query processor could not produce a query plan. For more information, contact Customer Support Services.
Resolution
This fix is included in Cumulative Update 2 for SQL Server 2017.
About SQL Server 2017 builds
Each new build for SQL Server 2017 contains all the hotfixes and security fixes that were in the previous build. We recommend that you install the latest build for SQL Server 2017.
Status
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.
References
Learn about the terminology Microsoft uses to describe software updates.