on 02-18-2016 1:28 PM
Hi Folks,
I have been searching for a way of changing certain datatypes when generating a new Hive PDM (Hive dbms Definition) from an existing Oracle PDM.
I have added various conversions in the HIVE10::Script\DataType\AmcdDataType definition file, example below:
Internal | Physical Model |
---|---|
N%s,%p | decimal(%s,%p) |
VA%n | varchar(%n) |
But what I am actually tying to do is to conditionally change the type/size of datatypes when generating a new Hive PDM from an existing Oracle PDM; See below.
Oracle nunber(1 to 9) to Hive int datatype
Oracle number(10 to 19) to Hive bigint datatype.
Oracle number(20 +) to Hive decimal.
Oracle number(10,2) to Hive decimal(10,2)
I could just do it manually through the "List of Columns" and block changes, but I would have to do this exercise every time I generate a new PDM, that requires this formatting.
Has anybody done the type of conditional formatting before, or any pointers?
many thanks
Try using transformations.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.