My Oracle Support Banner

"ParseException" Error is Received on ODI 12c Hive Table Creation when Column Name Has Diacritics (Doc ID 2314621.1)

Last updated on JULY 26, 2018

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,
  ...
)

Changes

 

Cause

To view full details, 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 a vibrant support community of peers and Oracle experts.