markdown edit

This commit is contained in:
Preston Hervey 2018-12-17 15:04:04 -06:00
parent fe17dd7918
commit b6ed4a8506

View File

@ -13,10 +13,10 @@ SetUpAggs.exe apply -Server asazure://server/instance -ConfigFile AggsConfig.jso
* Validate configuration file against the model, exit with relevant error message if issue is found in configuration or model * Validate configuration file against the model, exit with relevant error message if issue is found in configuration or model
* Update model compatibility level if current compatibility level is below 1465 * Update model compatibility level if current compatibility level is below 1465
* Apply configuration changes to model * Apply configuration changes to model
** For each table * For each table
*** For each partition, update partition mode to Dual, DirectQuery, Import, or Default as specified in config * For each partition, update partition mode to Dual, DirectQuery, Import, or Default as specified in config
*** For each column, remove any AlternateOf definitions that do not match an aggregation rule in the config * For each column, remove any AlternateOf definitions that do not match an aggregation rule in the config
*** For each rule, add the AlternateOf definition to the model if it does not already exist * For each rule, add the AlternateOf definition to the model if it does not already exist
* If changes were made to the model, run the ExpandFull on the model * If changes were made to the model, run the ExpandFull on the model
* If changes were made to the model, refresh the tables that were modified * If changes were made to the model, refresh the tables that were modified
@ -25,70 +25,70 @@ SetUpAggs.exe apply -Server asazure://server/instance -ConfigFile AggsConfig.jso
```json ```json
{ {
"database": { "database": {
"name": "AdventureWorksAggsProvider", "name": "AdventureWorksAggsProvider",
"tables": [ "tables": [
{ {
"name": "DimGeography", "name": "DimGeography",
"mode": "Dual" "mode": "Dual"
}, },
{ {
"name": "DimCustomer", "name": "DimCustomer",
"mode": "Dual" "mode": "Dual"
}, },
{ {
"name": "DimDate", "name": "DimDate",
"mode": "Dual" "mode": "Dual"
}, },
{ {
"name": "DimProductSubcategory", "name": "DimProductSubcategory",
"mode": "Dual" "mode": "Dual"
}, },
{ {
"name": "DimProductCategory", "name": "DimProductCategory",
"mode": "Dual" "mode": "Dual"
}, },
{ {
"name": "FactInternetSalesAgg", "name": "FactInternetSalesAgg",
"mode": "Import", "mode": "Import",
"aggregationRules": [ "aggregationRules": [
{ {
"aggTableColumn": "OrderDateKey", "aggTableColumn": "OrderDateKey",
"summarization": "GroupBy", "summarization": "GroupBy",
"detailTable": "FactInternetSales", "detailTable": "FactInternetSales",
"detailTableColumn": "OrderDateKey" "detailTableColumn": "OrderDateKey"
}, },
{ {
"aggTableColumn": "CustomerKey", "aggTableColumn": "CustomerKey",
"summarization": "GroupBy", "summarization": "GroupBy",
"detailTable": "FactInternetSales", "detailTable": "FactInternetSales",
"detailTableColumn": "CustomerKey" "detailTableColumn": "CustomerKey"
}, },
{ {
"aggTableColumn": "ProductSubcategoryKey", "aggTableColumn": "ProductSubcategoryKey",
"summarization": "GroupBy", "summarization": "GroupBy",
"detailTable": "DimProduct", "detailTable": "DimProduct",
"detailTableColumn": "ProductSubcategoryKey" "detailTableColumn": "ProductSubcategoryKey"
}, },
{ {
"aggTableColumn": "SalesAmount_Sum", "aggTableColumn": "SalesAmount_Sum",
"summarization": "Sum", "summarization": "Sum",
"detailTable": "FactInternetSales", "detailTable": "FactInternetSales",
"detailTableColumn": "SalesAmount" "detailTableColumn": "SalesAmount"
}, },
{ {
"aggTableColumn": "UnitPrice_Sum", "aggTableColumn": "UnitPrice_Sum",
"summarization": "Sum", "summarization": "Sum",
"detailTable": "FactInternetSales", "detailTable": "FactInternetSales",
"detailTableColumn": "UnitPrice" "detailTableColumn": "UnitPrice"
}, },
{ {
"aggTableColumn": "FactInternetSales_Count", "aggTableColumn": "FactInternetSales_Count",
"summarization": "CountTableRows", "summarization": "CountTableRows",
"detailTable": "FactInternetSales" "detailTable": "FactInternetSales"
} }
] ]
} }
] ]
} }
} }
``` ```