Creating Database Table from Metadata and Database Connection

As the last option, you can also create a database table on the basis of metadata (both internal and external).

When you select the Create database table item from each of the two context menus (called out from the Outline pane and/or Graph Editor), a wizard with a SQL query that can create database table opens.

Creating Database Table from Metadata and Database Connection

Figure 32.35. Creating Database Table from Metadata and Database Connection


You can edit the contents of this window if you want.

When you select some connection to a database. For more details see Database Connections. Such database table will be created.

[Note]Note

If multiple SQL types are listed, actual syntax depends on particular metadata (size for fixed-length field, length, scale, etc.).

Table 32.15. CloverETL-to-SQL Data Types Transformation Table (Part I)

DB typeDB2 & DerbyFirebirdHiveInformixMSAccess
Clover type     
boolean SMALLINTCHAR(1)BOOLEANBOOLEANBIT
byte VARCHAR(80) FOR BIT DATACHAR(80)BINARY[a]BYTEVARBINARY(80)
CHAR(n) FOR BIT DATACHAR(n)  BINARY(n)
cbyte VARCHAR(80) FOR BIT DATACHAR(80)BINARY[a]BYTEVARBINARY(80)
CHAR(n) FOR BIT DATACHAR(n)  BINARY(n)
date TIMESTAMPTIMESTAMPTIMESTAMP[a]DATETIME YEAR TO SECONDDATETIME
DATE  DATEDATE
TIME  DATETIME HOUR TO SECONDTIME
     
decimal DECIMALDECIMALDECIMAL[b]DECIMALDECIMAL
DECIMAL(p)DECIMAL(p) DECIMAL(p)DECIMAL(p)
DECIMAL(p,s)DECIMAL(p,s) DECIMAL(p,s)DECIMAL(p,s)
integer INTEGERINTEGERINTINTEGERINT
long BIGINTBIGINTBIGINTINT8BIGINT
number DOUBLEFLOATDOUBLEFLOATFLOAT
string VARCHAR(80)VARCHAR(80)STRINGVARCHAR(80)VARCHAR(80)
CHAR(n)CHAR(n) CHAR(n)CHAR(n)

[a] Available from version 0.8.0 of Hive

[b] Available from version 0.11.0 of Hive


Table 32.16. CloverETL-to-SQL Data Types Transformation Table (Part II)

DB typeMSSQLMSSQLMySQLOraclePervasive
Clover type2000-20052008   
boolean BITBITTINYINT(1)SMALLINTBIT
byte VARBINARY(80)VARBINARY(80)VARBINARY(80)RAW(80)LONGVARBINARY(80)
BINARY(n)BINARY(n)BINARY(n)RAW(n)BINARY(n)
cbyte VARBINARY(80)VARBINARY(80)VARBINARY(80)RAW(80)LONGVARBINARY(80)
BINARY(n)BINARY(n)BINARY(n)RAW(n)BINARY(n)
date DATETIMEDATETIMEDATETIMETIMESTAMPTIMESTAMP
 DATEYEARDATEDATE
 TIMEDATE TIME
  TIME  
decimal DECIMALDECIMALDECIMALDECIMALDECIMAL
DECIMAL(p)DECIMAL(p)DECIMAL(p)DECIMAL(p)DECIMAL(p)
DECIMAL(p,s)DECIMAL(p,s)DECIMAL(p,s)DECIMAL(p,s)DECIMAL(p,s)
integer INTINTINTINTEGERINTEGER
long BIGINTBIGINTBIGINTNUMBER(11,0)BIGINT
number FLOATFLOATDOUBLEFLOATDOUBLE
string VARCHAR(80)VARCHAR(80)VARCHAR(80)VARCHAR2(80)VARCHAR2(80)
CHAR(n)CHAR(n)CHAR(n)CHAR(n)CHAR(n)

Table 32.17. CloverETL-to-SQL Data Types Transformation Table (Part III)

DB typePostgreSQLSQLiteSybaseGeneric
Clover type    
boolean BOOLEANBOOLEANBITBOOLEAN
byte BYTEAVARBINARY(80)VARBINARY(80)VARBINARY(80)
 VARBINARY(80)BINARY(n)BINARY(n)
cbyte BYTEAVARBINARY(80)VARBINARY(80)VARBINARY(80)
 BINARY(n)BINARY(n)BINARY(n)
date TIMESTAMPTIMESTAMPDATETIMETIMESTAMP
DATEDATEDATEDATE
TIMETIMETIMETIME
    
decimal NUMERICDECIMALDECIMALDECIMAL
NUMERIC(p)DECIMAL(p)DECIMAL(p)DECIMAL(p)
NUMERIC(p,s)DECIMAL(p,s)DECIMAL(p,s)DECIMAL(p,s)
integer INTEGERINTEGERINTINTEGER
long BIGINTBIGINTBIGINTBIGINT
number REALNUMERICFLOATFLOAT
string VARCHAR(80)VARCHAR(80)VARCHAR(80)VARCHAR(80)
CHAR(n)CHAR(n)CHAR(n)CHAR(n)

Revised: 2013-02-18