Closed florianfischerx closed 3 years ago
If you are interested in working on this issue, please leave a comment below and we will be happy to assign the issue to you. If this is the first time you are contributing a Pull Request to Cube.js, please check our contribution guidelines. You can also post any questions while contributing in the #contributors channel in the Cube.js Slack.
Above should fix this minor problem.
Describe the bug Incremental refreshkey with updateWindow for pre-aggregation generates broken SQL for MSSQL
To Reproduce
Setting up an incremental update for a pre-aggregation like this (ignore bogus values):
Results in the following output:
The problem is that a query as following is generated:
But "interval" is not valid inMssqlMSSQL (I think?). This happens because
addInterval, subtractInterval
are not overridden for Mssql.I believe something like https://github.com/hal9000-swarm/cube.js/blob/15a25990ebb172c4cb4066f591bbbf543bc082c5/packages/cubejs-schema-compiler/src/adapter/MssqlQuery.js#L30 is needed here.
Expected behavior Generate a query like:
by implementing addInterval, subtractInterval