I was having some troubles with the Database Value Lookup step today.
In a transformation I used the Dimension Lookup / Update step to insert in my SCD ACCOUNT_STATUS table. To define the last inserted. that's how I defined my table :
Spoon inserts 'Y' or 'N' in TOP because I used an Oracle database, This part works very well !!!
In an other transformation I would get the last row inserted for an account in the ACCOUNT_STATUS table, for that I use the Database Value Lookup step with these lookup values :
I get ACCOUNT_ID from my database and I set TOP with a Add constant values step (Name : TOP, Type : String, Value : Y), when I load this transformation, it doesn't find the last row inserted, if I remove the TOP comparison it finds all rows inserted for this account.
I don't understand how Spoon works with Boolean, I've tried with Boolean, Integer, ... but always it doesn't work.
Thanks in advance for any help,
Yvan
In a transformation I used the Dimension Lookup / Update step to insert in my SCD ACCOUNT_STATUS table. To define the last inserted. that's how I defined my table :
Name | Null | Type |
ACCOUNT_STATUS_ID | NOT NULL | NUMBER |
ACCOUNT_ID | NOT NULL | NUMBER |
STATUS_ID | NOT NULL | NUMBER |
START_DATE | DATE | |
END_DATE | DATE | |
TOP | VARCHAR2(1 CHAR) | |
VERSION | NUMBER |
Spoon inserts 'Y' or 'N' in TOP because I used an Oracle database, This part works very well !!!
In an other transformation I would get the last row inserted for an account in the ACCOUNT_STATUS table, for that I use the Database Value Lookup step with these lookup values :
Table field | Comparator | Field1 |
ACCOUNT_ID | = | ACCOUNT_ID |
TOP | = | TOP |
I get ACCOUNT_ID from my database and I set TOP with a Add constant values step (Name : TOP, Type : String, Value : Y), when I load this transformation, it doesn't find the last row inserted, if I remove the TOP comparison it finds all rows inserted for this account.
I don't understand how Spoon works with Boolean, I've tried with Boolean, Integer, ... but always it doesn't work.
Thanks in advance for any help,
Yvan