File tree Expand file tree Collapse file tree 2 files changed +2
-0
lines changed
packages/cubejs-schema-compiler/src/adapter Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -2423,6 +2423,7 @@ class BaseQuery {
24232423 AVG : 'AVG({{ args_concat }})' ,
24242424
24252425 COALESCE : 'COALESCE({{ args_concat }})' ,
2426+ CONCAT : 'CONCAT({{ args_concat }})' ,
24262427 } ,
24272428 statements : {
24282429 select : 'SELECT {{ select_concat | map(attribute=\'aliased\') | join(\', \') }} \n' +
Original file line number Diff line number Diff line change @@ -49,6 +49,7 @@ export class PostgresQuery extends BaseQuery {
4949 // eslint-disable-next-line no-template-curly-in-string
5050 templates . params . param = '${{ param_index + 1 }}' ;
5151 templates . functions . DATETRUNC = 'DATE_TRUNC({{ args_concat }})' ;
52+ templates . functions . CONCAT = 'CONCAT({% for arg in args %}CAST({{arg}} AS TEXT){% if not loop.last %},{% endif %}{% endfor %})' ;
5253 return templates ;
5354 }
5455}
You can’t perform that action at this time.
0 commit comments