"ParseException" Error is Received on ODI 12c Hive Table Creation when Column Name Has Diacritics

(Doc ID 2314621.1)

Last updated on OCTOBER 12, 2017

Applies to:

Oracle Data Integrator - Version 12.1.2.0.0 and later
Information in this document applies to any platform.

Symptoms

Having an Oracle Data Integrator (ODI) 12c Mapping to load data from an Oracle table into Hive.

The Oracle source table has column names with diacritics also known as extended ASCII or accented characters, such as:

     REDEN_COMMERCIËLE_KORT
     (Observe the diacritic Ë)

The following error is reported:

ODI-1228: Task Create work table-LKM SQL to Hive SQOOP- fails on the target connection BDC_Hive.
Caused By: java.sql.SQLSyntaxErrorException: [FMWGEN][Hive JDBC Driver][Hive]Error while compiling statement: FAILED: ParseException line 156:16 cannot recognize input near 'LE_KORT' 'STRING' ',' in column type
  at weblogic.jdbc.hivebase.ddcp.b(Unknown Source)
  at weblogic.jdbc.hivebase.ddcp.a(Unknown Source)
  ...

     ... the executed code being:

CREATE TABLE IF NOT EXISTS odi_work_schema.c_0EXPRESSIONAWknl9hGIbdhJPMDjwBQuj
(
  ...
  REDEN_COMMERCIËLE_KORT STRING,
  ...
)

Cause

Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms