Skip to main content

Data type conversion issue

Scenario:

We are creating hundreds of passthrough mappings that need to store numeric source data columns as varchar2 string columns in the target Oracle staging tables. (This is to bypass a current iDQ bug where large numbers are presented in profiling results in scientific notation - KB 117753).

Unfortunaly Powercentre pads all available significant places with zeros.

E.g. a source column (15,2) passing value 12.3 into a target column of varchar2(20) will populate with "12.3000000000000".

Can this be avoided without manipulating each mapping with an additional expression with a string function and new output port for each column?


Solution:


Enabling high pression ensures the source data type (both scale and prescision intact).

So if you want to avoid trailing 0's, u can use TRIM function in the SQ override query.

Comments

Popular posts from this blog

SQL Transformation with examples

============================================================================================= SQL Transformation with examples   Use : SQL Transformation is a connected transformation used to process SQL queries in the midstream of a pipeline . We can insert, update, delete and retrieve rows from the database at run time using the SQL transformation. Use SQL transformation in script mode to run DDL (data definition language) statements like creating or dropping the tables. The following SQL statements can be used in the SQL transformation. Data Definition Statements (CREATE, ALTER, DROP, TRUNCATE, RENAME) DATA MANIPULATION statements (INSERT, UPDATE, DELETE, MERGE) DATA Retrieval Statement (SELECT) DATA Control Language Statements (GRANT, REVOKE) Transaction Control Statements (COMMIT, ROLLBACK) Scenario: Let’s say we want to create a temporary table in mapping while workflow is running for some intermediate calculation. We can use SQL transformat...

Convert Numeric Value to Date Format

                                                                                                                                                                     ...