-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MSSQL can't use CTEs #8247
Comments
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. Could you please double-check your data model and maybe provide more details? It would be great to see the full output of the |
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
The text was updated successfully, but these errors were encountered: