Solved.
CASE
WHEN "Infra_class" = 0 THEN round ( sum ( "length","Infra_class" is '0') )
WHEN "Infra_class" = 1 THEN round ( sum ( "length","Infra_class" is '1') )
WHEN "Infra_class" = 2 THEN round ( sum ( "length","Infra_class" is '2') )
WHEN "Infra_class" = 3 THEN round ( sum ( "length","Infra_class" is '3') )
ELSE round ( sum ( "length","Infra_class" is '4') )
END
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…