We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Try to run the following queries:
SELECT x FROM table
SELECT COUNT(*) FROM table
The QueryConsolidator combines these to SELECT "x" AS "col0", COUNT(*)::INTEGER AS "col1" FROM "table" AS "source" which obviously fails.
QueryConsolidator
SELECT "x" AS "col0", COUNT(*)::INTEGER AS "col1" FROM "table" AS "source"
it('should not consolidate aggregated and non-aggregated queries', async () => { const qs = []; const c = consolidator(q => qs.push(q.request.query.toString()), voidCache(), () => {/*ignore*/}); c.add({request: { type: 'arrow', query: Query.from({ source: 'table' }).select({ x: 'x' }) }}, Priority.Normal); c.add({request: { type: 'arrow', query: Query.from({ source: 'table' }).select({ x: count() }) }}, Priority.Normal); await new Promise(resolve => setImmediate(resolve)); assert.equal(qs.length, 2); });
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Try to run the following queries:
SELECT x FROM table
SELECT COUNT(*) FROM table
The
QueryConsolidator
combines these toSELECT "x" AS "col0", COUNT(*)::INTEGER AS "col1" FROM "table" AS "source"
which obviously fails.The text was updated successfully, but these errors were encountered: