Update to support partition elimination in query plans that have spatial indexes in SQL Server 2016 and 2017

Van toepassing: SQL Server 2016 Service Pack 1SQL Server 2016 DeveloperSQL Server 2016 Enterprise

Symptoms


Consider the following scenario:

  • You have a partitioned table that contains a spatial index in Microsoft SQL Server 2016 and 2017.
  • You run a query that has a predicate by using a spatial operation on the partitioning column in such a way that the resulting data will only be located in a subset of all partitions.

In this scenario, SQL Server can typically use partition elimination in a query plan that only allows to read the data from relevant partitions. However, if a spatial index is used in the query plan, you may notice that SQL Server reads all partitions.

Resolution


This update is included in the following cumulative updates for SQL Server:

       Cumulative Update 6 for SQL Server 2017

       Cumulative update 8 for SQL Server 2016 SP1

References


Learn about the terminology that Microsoft uses to describe software updates.