We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 230567b commit d090e90Copy full SHA for d090e90
packages/cubejs-schema-compiler/src/adapter/PreAggregations.ts
@@ -1404,7 +1404,7 @@ export class PreAggregations {
1404
if (tables.length === 1) {
1405
return tables[0].tableName;
1406
}
1407
- const union = tables.map(table => `SELECT ${table.columns.join(', ')} FROM ${table.tableName} un`).join(' UNION ALL ');
+ const union = tables.map(table => `SELECT ${table.columns.join(', ')} FROM ${table.tableName}`).join(' UNION ALL ');
1408
return `(${union})`;
1409
1410
0 commit comments