Create key change column..sort stage error ???
Posted: Tue Jan 24, 2012 3:58 pm
Hello Everyone;
[ ]
Input data:
CuSTID|CNAME|CITY
1|MIKE|NY
1|TIM|NC
1|JOHN|MI
2|TOM|MN
2|KEVIN|LA
Output data:(format should be)
CuSTID|CNAME|CITY|keyChange
1|MIKE|NY|1
1|TIM|NC|0
1|JOHN|MI|0
2|TOM|MN|1
2|KEVIN|LA|0
Sort stage :-
sort key=CUSTID ,sort mode=Don't sort (Previously grouped)
option:
create key change column =true
I am using sort stage to create the "key change column "..job getting aborted with following messages :
How to create "least one key without "clustered" property "??or some thing I am missing here
Thank you !!!
[
Code: Select all
seq_file >>>>sort1 stage>>seq_file2
Input data:
CuSTID|CNAME|CITY
1|MIKE|NY
1|TIM|NC
1|JOHN|MI
2|TOM|MN
2|KEVIN|LA
Output data:(format should be)
CuSTID|CNAME|CITY|keyChange
1|MIKE|NY|1
1|TIM|NC|0
1|JOHN|MI|0
2|TOM|MN|1
2|KEVIN|LA|0
Sort stage :-
sort key=CUSTID ,sort mode=Don't sort (Previously grouped)
option:
create key change column =true
I am using sort stage to create the "key change column "..job getting aborted with following messages :
Code: Select all
main_program: When splitting sort key schema: Must have at least one key without "clustered" property [sort\tsort.C:351]
Sequential_File_2: Error when checking operator: Could not find input field "CuSTID" [api\interface_rep.C:3169]
Sort_1: When checking operator: Modify operator keeps field "CuSTID" not present in output interface [api\interface_rep.C:6998]
Thank you !!!