Import of DDL Into Teiid Designer Fails

Solution Verified - Updated -

Issue

  • When attempting to import the below DDL into a model created with Teiid designer:
-- ----------------------------------------------
-- Table Address
-- ----------------------------------------------
CREATE TABLE Address
(
  addressID Varchar NOT NULL,
  addressTypeID Varchar,
  address1 Varchar,
  address2 Varchar,
  cityName Varchar,
  stateCode Varchar,
  zipCode Varchar,
  countyCode Varchar,
  shelterTypeID Varchar,
  startDate DATE NOT NULL,
  endDate DATE,
  boroughCode SMALLINT,
  communityDistrictNumber SMALLINT,
  inCareOfName Varchar,
  personID Varchar NOT NULL,
  PRIMARY KEY
  (
    addressID
  )
)

I receive the below error:

Expecting "(" but found "NOT" at line 1, column 20: addressID Varchar===>>NOT NULL, addressTy

Environment

  • JBoss Enterprise Data Services (JBEDS) 5.2.0
  • JBoss Developer Studio (JBDS) 4.1.2
  • Teiid Designer Perspective inside of JBDS

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content