sub toSQL {
my $self = shift;
- return 'STRING_AGG("' . $self->{_relation} . '"."' . $self->name . '"::text,\',\')';
+ return 'STRING_AGG(DISTINCT nullif("' . $self->{_relation} . '"."' . $self->name . '"::text,\'\'),\',\')';
}
sub is_aggregate { return 1 }
s.TFORMS_LABEL_MONTHS_AGO = '[% l( "Months ago") %]';
s.TFORMS_LABEL_QUARTERS_AGO = '[% l( "Quarters ago") %]';
s.TFORMS_LABEL_SUM = '[% l( "Sum") %]';
+s.TFORMS_LABEL_STRING_AGG = '[% l( "String Aggregate") %]';
s.TFORMS_LABEL_AVERAGE = '[% l( "Average") %]';
s.TFORMS_LABEL_ROUND = '[% l( "Round") %]';
s.TFORMS_LABEL_INT = '[% l( "Drop trailing decimals") %]';
s.TRANSFORMS_MONTHS_AGO = '[% l( "Months ago") %]';
s.TRANSFORMS_QUARTERS_AGO = '[% l( "Quarters ago") %]';
s.TRANSFORMS_SUM = '[% l( "Sum") %]';
+s.TRANSFORMS_STRING_AGG = '[% l( "String Aggregate") %]';
s.TRANSFORMS_AVERAGE = '[% l( "Average") %]';
s.TRANSFORMS_ROUND = '[% l( "Round") %]';
s.TRANSFORMS_INT = '[% l( "Drop trailing decimals") %]';