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 25dae18 commit b5a85d6Copy full SHA for b5a85d6
packages/cubejs-testing/test/smoke-cubesql.test.ts
@@ -390,6 +390,13 @@ describe('SQL API', () => {
390
expect(res.rows).toEqual([]);
391
});
392
393
+ test('zero limited dimension aggregated queries through wrapper', async () => {
394
+ // Attempts to trigger query generation from SQL templates, not from Cube
395
+ const query = 'SELECT MIN(t.maxval) FROM (SELECT MAX(createdAt) as maxval FROM Orders LIMIT 10) t LIMIT 0';
396
+ const res = await connection.query(query);
397
+ expect(res.rows).toEqual([]);
398
+ });
399
+
400
test('select dimension agg where false', async () => {
401
const query =
402
'SELECT MAX("createdAt") AS "max" FROM "BigOrders" WHERE 1 = 0';
0 commit comments