The WHERE
condition in my T-SQL query is not returning any rows, from SQL 2019 polybase to .XLSX file
Here's my code that created Polybase:
create master key encryption by password = 'Polybase2CSV';
create external data source myODBCxlsx with
(
LOCATION = 'odbc://localhost',
CONNECTION_OPTIONS = 'Driver={Microsoft Excel Driver (*.xls, *.xlsx, *.xlsm, *.xlsb)}; DBQ=F:\PolybaseSourceData\CustomerData.xlsx'
);
create external table CustomerData(
CUSTOMERID FLOAT(53),
CUSTOMERNAME Nvarchar(255),
DEPARTMENT Nvarchar(255)
) with (
LOCATION='[sheet1$]',
DATA_SOURCE=myODBCxlsx
);
This query works:
select * from customerData
However this doesn't:
select * from customerData where customername = 'Steve'
The query doesn't return any rows, although there's a customer by name Steve.