markdown edit
This commit is contained in:
parent
fe17dd7918
commit
b6ed4a8506
@ -8,87 +8,87 @@ When running this utility against an Azure Analysis Services model, it will upgr
|
|||||||
SetUpAggs.exe apply -Server asazure://server/instance -ConfigFile AggsConfig.json
|
SetUpAggs.exe apply -Server asazure://server/instance -ConfigFile AggsConfig.json
|
||||||
|
|
||||||
## Steps
|
## Steps
|
||||||
* Parse command line arguments, show basic help
|
* Parse command line arguments, show basic help
|
||||||
* Connect to model
|
* Connect to model
|
||||||
* 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
|
||||||
|
|
||||||
## Configuration File Example
|
## Configuration File Example
|
||||||
|
|
||||||
```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"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user