Commit dff9bc3
fix: move ORDER BY out of create_temp_table query for T-SQL compatibility
T-SQL forbids ORDER BY in views/subqueries/CTEs unless TOP or OFFSET
is also specified. The fabric__create_temp_table uses a VIEW workaround,
so ORDER BY must be in the final SELECT, not in the materialised query.
Co-Authored-By: Itamar Hartstein <haritamar@gmail.com>1 parent f51dfc9 commit dff9bc3
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
180 | | - | |
181 | 180 | | |
182 | 181 | | |
183 | 182 | | |
184 | 183 | | |
185 | 184 | | |
186 | 185 | | |
| 186 | + | |
187 | 187 | | |
188 | 188 | | |
| 189 | + | |
189 | 190 | | |
190 | 191 | | |
191 | 192 | | |
| |||
0 commit comments