FIX: PolyBase may fail to generate dumps if an error occurs during the distributed query optimization phase in SQL Server 2019

Applies to: SQL Server 2019 on LinuxSQL Server 2019 on Windows

Symptoms


Assume that you use SQL Server 2019 with PolyBase feature installed. If PolyBase encounters an unexpected error during the distributed query optimization phase, and tries to create a memory dump to capture the state of the system, you may notice that the dump creation fails. In addition, you may receive the following error message in the engine service logs:

DateTime [Thread:ThreadId] [OptimizedStatement:ErrorEvent] (Error, High): DQO Dump - Unexpected exception during generating dump. [Session.SessionId:SID450][Session.IsTransactional:False][Query.QueryId:QueryId]
DateTime [Thread:ThreadId] [OptimizedStatement:ErrorEvent] (Error, High): 
System.NotImplementedException: The method or operation is not implemented.
   at Microsoft.SqlServer.DataWarehouse.Sql.Optimizer.MemoProvider.MemoGeneratorFromStream.GenerateMemoXml(String query)
   at Microsoft.SqlServer.DataWarehouse.Sql.Statements.OptimizedStatement.GenerateOptimizedStatementDumpHandler(OptimizedStatement optimizedStatement, Exception ex) 
DateTime [Thread:ThreadId] [OptimizedStatement:ErrorEvent] (Error, High): DQO Dump - Unexpected exception during generating dump. [Session.SessionId:SID477][Session.IsTransactional:False][Query.QueryId:QueryId]
DateTime [Thread:ThreadId] [OptimizedStatement:ErrorEvent] (Error, High): 
System.NotImplementedException: The method or operation is not implemented.
   at Microsoft.SqlServer.DataWarehouse.Sql.Optimizer.MemoProvider.MemoGeneratorFromStream.GenerateMemoXml(String query)
   at Microsoft.SqlServer.DataWarehouse.Sql.Statements.OptimizedStatement.GenerateOptimizedStatementDumpHandler(OptimizedStatement optimizedStatement, Exception ex) [Session.SessionId:SID477][Session.IsTransactional:False][Query.QueryId:QueryId]

Status


Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section. 

Resolution


This issue is fixed in the following cumulative update for SQL Server:
About cumulative updates for SQL Server:
Each new cumulative update for SQL Server contains all the hotfixes and all the security fixes that were included with the previous cumulative update. Check out the latest cumulative updates for SQL Server:

References


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