Sort: Input column does not promote to output column
Posted: Fri Oct 13, 2006 4:27 am
Hello,
I want to select within the combination of DUNS_NO (char) and DATE (timestamp) the DUNS_NO with the most recent date. The data comes from a hash-file with DUNS_NO and DATE as keyfields.
A SORT reads the hash-file, the output goes into an AGGREGATOR and the output is another hash-file.
In the SORT I specify as output that I want to group on DUNS_NO and both DUNS_NO and DATE remain key-fields. Also I specified in the properties: DUNS_NUMBER asc, DATE asc
In the AGGREGATOR I specified in the input side the sort-order. DUNS_NO 1 and DATE 2, both ascending and both key-field. In the output I specified to group on DUNS_NO, which remains key. For DATE I specified in the deriviation Last(DATE).
While running this job I get the message: 'Sort: Input column does not promote to output column.'. The column mentioned the third column in the hash-file. DUNS_NO and DATE are resp. the 4th and 5th column in the hash-file.
Hope someone can help me.
Thanks in advance.
Kind regards,
Jan
I want to select within the combination of DUNS_NO (char) and DATE (timestamp) the DUNS_NO with the most recent date. The data comes from a hash-file with DUNS_NO and DATE as keyfields.
A SORT reads the hash-file, the output goes into an AGGREGATOR and the output is another hash-file.
In the SORT I specify as output that I want to group on DUNS_NO and both DUNS_NO and DATE remain key-fields. Also I specified in the properties: DUNS_NUMBER asc, DATE asc
In the AGGREGATOR I specified in the input side the sort-order. DUNS_NO 1 and DATE 2, both ascending and both key-field. In the output I specified to group on DUNS_NO, which remains key. For DATE I specified in the deriviation Last(DATE).
While running this job I get the message: 'Sort: Input column does not promote to output column.'. The column mentioned the third column in the hash-file. DUNS_NO and DATE are resp. the 4th and 5th column in the hash-file.
Hope someone can help me.
Thanks in advance.
Kind regards,
Jan