fixed listagg

This commit is contained in:
jpenghashi 2021-12-09 00:35:59 -08:00
parent 0b4c69b859
commit feae943dd8

View File

@ -665,10 +665,11 @@ public final class SQLExpressions {
* @param delimiter delimiter
* @return listagg(expr, delimiter)
*/
public static WithinGroup<Object> listagg(Expression<?> expr, String delimiter) {
return new WithinGroup<Object>(Object.class, SQLOps.LISTAGG, expr, ConstantImpl.create(delimiter));
public static WithinGroup<String> listagg(Expression<?> expr, String delimiter) {
return new WithinGroup<String>(String.class, SQLOps.LISTAGG, expr, ConstantImpl.create(delimiter));
}
/**
* NTH_VALUE returns the expr value of the nth row in the window defined by the analytic clause.
* The returned value has the data type of the expr.