Open chrismcv opened 2 months ago
Hi @chrismcv 👋
Sorry, I was n't able to reproduce this. I used exactly the data model code that you've provided and tested it against a Fabric data warehouse that, I believe, uses the same SQL syntax like MS SQL Server.
Here's what I've got:
Could you please double-check your data model and maybe provide more details? It would be great to see the full output of the /v1/sql
API endpoint of your REST API. Also, if you can reproduce this in Cube Cloud (on a free tier), it would be tremendously helpful.
Describe the bug Using
mssql
when my cube sql contains a CTE, I can't perform aggregations.The following is valid syntax:
Cube generates, which isn't valid in
mssql
:To Reproduce Steps to reproduce the behavior:
Expected behavior It should generate valid SQL for the driver.
Screenshots If applicable, add screenshots to help explain your problem.
Minimally reproducible Cube Schema In case your bug report is data modelling related please put your minimally reproducible Cube Schema here. You can use selects without tables in order to achieve that as follows.
Version: 0.35.20