Я получаю проблему ниже при использовании функции 'XmlAgg' в teradata.
Код: -
,Trim(Trailing '|' FROM ( XmlAgg(EDW1.sr_part_tracking_desc || '|' ORDER BY EDW1.req_line_id) (VARCHAR(4000)) ) )
Проблема:
*** Failure 7548 13 The target type is not large enough to accomodate the results of the cast.
Пожалуйста, помогите, это очень важно для меня.
пытался
substr(Trim(Trailing '|' FROM ( XmlAgg(EDW1.sr_part_tracking_desc || '|' ORDER BY EDW1.req_line_id) (VARCHAR(4000)) ) ),1,4000)
но та же проблема.
Trim(Trailing '|' FROM ( XmlAgg(EDW1.sr_part_tracking_desc || '|' ORDER BY EDW1.req_line_id) (VARCHAR(4000)) ) )
Выпуск: *** Failure 7548 13 The target type is not large enough to accomodate the results of the cast.