Abinitio Interview Question #16
Watch my YouTube video for explanation :
Please look into the class notes here for your references:
field1 field2 field3
2 a 10200
4 b 10200300400
2 c 10200
Normalize
output
field1 field2
a 1
a 2
b 1
b 2
b 3
b 4
c 1
c 2
out::length(in)=
begin
length::length(string_filter_out(in.field3,'0'));
end;
out::nomalize(index,in)=
begin
out.field2::in.field2;
out.field3::string_split(in.field3,'0')[index];
end;
Fore more Abinitio, AWS and data engineering videos please subscribe , view , like and share my YouTube channel
Click DataPundit
Comments
Post a Comment