My Oracle Support Banner

"Incorrect syntax" Message Received when using "LKM SQL To Spark" with SQL Server as the Source in ODI (Doc ID 2371732.1)

Last updated on SEPTEMBER 14, 2022

Applies to:

Oracle Data Integrator - Version to [Release 12c]
Information in this document applies to any platform.


In Oracle Data Integrator (ODI), a mapping using the Loading Knowledge Module (LKM) titled "LKM SQL to Spark" doesn't work correctly with Microsoft SQL Server (MSSQL) as the source. It reports an "Incorrect syntax" message.

The LKM is preparing the SQL statement and adding a "WHERE 1=0" to the source query. The code is generated as follows:

SELECT * FROM (select col1, col2 FROM dbo.<TABLE NAME>) WHERE 1=0




To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.