Skip to content

Commit 51a6e8a

Browse files
author
pmasl
committed
Added new notebooks to IQP demos
1 parent 84b793e commit 51a6e8a

7 files changed

Lines changed: 6890 additions & 16 deletions

File tree

samples/features/intelligent-query-processing/notebooks/Approximate_QP.ipynb

Lines changed: 385 additions & 0 deletions
Large diffs are not rendered by default.

samples/features/intelligent-query-processing/notebooks/Batch_Mode_on_Rowstore.ipynb

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -228,18 +228,18 @@
228228
"GO\r\n",
229229
"\r\n",
230230
"-- Row mode due to hint\r\n",
231-
"SELECT\t[Tax Rate],\r\n",
231+
"SELECT [Tax Rate],\r\n",
232232
"\t\t[Lineage Key],\r\n",
233233
"\t\t[Salesperson Key],\r\n",
234-
"\tSUM([Quantity])\t\t\t\t\tAS SUM_QTY,\r\n",
235-
"\tSUM([Unit Price])\t\t\t\tAS SUM_BASE_PRICE,\r\n",
236-
"\tCOUNT(*)\t\t\t\t\tAS COUNT_ORDER\r\n",
237-
"FROM\t[Fact].[OrderHistoryExtended]\r\n",
238-
"WHERE\t[Order Date Key]\t<= dateadd(dd, -73, '2015-11-13')\r\n",
239-
"GROUP\tBY\t[Tax Rate],\r\n",
234+
"\tSUM([Quantity]) AS SUM_QTY,\r\n",
235+
"\tSUM([Unit Price]) AS SUM_BASE_PRICE,\r\n",
236+
"\tCOUNT(*) AS COUNT_ORDER\r\n",
237+
"FROM [Fact].[OrderHistoryExtended]\r\n",
238+
"WHERE [Order Date Key]\t<= dateadd(dd, -73, '2015-11-13')\r\n",
239+
"GROUP BY [Tax Rate],\r\n",
240240
"\t\t[Lineage Key],\r\n",
241241
"\t\t[Salesperson Key]\r\n",
242-
"ORDER\tBY\t[Tax Rate],\r\n",
242+
"ORDER BY [Tax Rate],\r\n",
243243
"\t\t[Lineage Key],\r\n",
244244
"\t\t[Salesperson Key]\r\n",
245245
"OPTION (RECOMPILE, USE HINT('DISALLOW_BATCH_MODE'));\r\n",
@@ -1161,18 +1161,18 @@
11611161
"USE [WideWorldImportersDW]\r\n",
11621162
"GO\r\n",
11631163
"-- Batch mode on rowstore eligible\r\n",
1164-
"SELECT\t[Tax Rate],\r\n",
1164+
"SELECT [Tax Rate],\r\n",
11651165
"\t\t[Lineage Key],\r\n",
11661166
"\t\t[Salesperson Key],\r\n",
1167-
"\tSUM([Quantity])\t\t\t\t\tAS SUM_QTY,\r\n",
1168-
"\tSUM([Unit Price])\t\t\t\tAS SUM_BASE_PRICE,\r\n",
1169-
"\tCOUNT(*)\t\t\t\t\tAS COUNT_ORDER\r\n",
1170-
"FROM\t[Fact].[OrderHistoryExtended]\r\n",
1171-
"WHERE\t[Order Date Key]\t<= dateadd(dd, -73, '2015-11-13')\r\n",
1172-
"GROUP\tBY\t[Tax Rate],\r\n",
1167+
"\tSUM([Quantity]) AS SUM_QTY,\r\n",
1168+
"\tSUM([Unit Price]) AS SUM_BASE_PRICE,\r\n",
1169+
"\tCOUNT(*) AS COUNT_ORDER\r\n",
1170+
"FROM [Fact].[OrderHistoryExtended]\r\n",
1171+
"WHERE [Order Date Key]\t<= dateadd(dd, -73, '2015-11-13')\r\n",
1172+
"GROUP BY [Tax Rate],\r\n",
11731173
"\t\t[Lineage Key],\r\n",
11741174
"\t\t[Salesperson Key]\r\n",
1175-
"ORDER\tBY\t[Tax Rate],\r\n",
1175+
"ORDER BY [Tax Rate],\r\n",
11761176
"\t\t[Lineage Key],\r\n",
11771177
"\t\t[Salesperson Key]\r\n",
11781178
"OPTION (RECOMPILE);"

samples/features/intelligent-query-processing/notebooks/Table_Variable_Deferred_Compilation.ipynb

Lines changed: 6489 additions & 0 deletions
Large diffs are not rendered by default.
36.9 KB
Loading
30.2 KB
Loading
35 KB
Loading
37.4 KB
Loading

0 commit comments

Comments
 (0)