FIX: Error occurs when you run a query that includes a Boolean field against PolyBase external tables in SQL Server 2016 and 2017

Applies to: SQL Server 2016 Service Pack 1SQL Server 2016 DeveloperSQL Server 2016 Enterprise

Symptoms


Consider the following scenario:

  • You have the PolyBase feature installed in SQL Server 2016 and 2017. 
  • You have a table that has thousands of partitions.
  • You create a new partition. The column numbers of the new partition are different from the partition already created.
  • You use the schema of the latest partition to create a PolyBase external table.

In this scenario, when you run a query that includes a Boolean field the operation may fail. Additionally, you may receive an error message that resembles the following:

Msg 7320, Level 16, State 110, Line LineNumber

Cannot execute the query "Remote Query" against OLE DB provider "SQLNCLI11" for linked server "(null)". 110802;An internal DMS error occurred that caused this operation to fail. Details: Exception: Microsoft.SqlServer.DataWarehouse.DataMovement.Common.ExternalAccess.HdfsAccessException, Message: Java exception raised on call to HdfsBridge_CreateRecordReader. Java exception message:

HdfsBridge::CreateRecordReader - Unexpected error encountered creating the record reader.: Error [HdfsBridge::CreateRecordReader - Unexpected error encountered creating the record reader.] occurred while accessing external file 

[/hive/matchsite/searchlog/p_Year=#/p_Month=#/p_Day=#/#][#].

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 updates 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.