Adding output row and cost info to ep nodes. (#1635)

* Adding more rules for prop

* Adding new output row count and cost info to ep nodes

* Removing commented code
This commit is contained in:
Aasim Khan
2022-08-16 11:36:36 -07:00
committed by GitHub
parent 004a0b2178
commit dd41236ae9
3 changed files with 51 additions and 38 deletions

View File

@@ -40,6 +40,8 @@ namespace Microsoft.SqlTools.ServiceLayer.ExecutionPlan
ID = currentNode.ID,
Type = currentNode.Operation.Image,
Cost = currentNode.Cost,
RowCountDisplayString = currentNode.GetRowCountDisplayString(),
CostDisplayString = currentNode.GetNodeCostDisplayString(),
SubTreeCost = currentNode.SubtreeCost,
Description = currentNode.Description,
Subtext = currentNode.GetDisplayLinesOfText(true),
@@ -106,7 +108,7 @@ namespace Microsoft.SqlTools.ServiceLayer.ExecutionPlan
var complexProperty = prop.Value as ExpandableObjectWrapper;
if (complexProperty == null)
{
if(!prop.IsBrowsable)
if (!prop.IsBrowsable)
{
continue;
}
@@ -165,7 +167,7 @@ namespace Microsoft.SqlTools.ServiceLayer.ExecutionPlan
}
public static List<TopOperationsDataItem> ParseTopOperationsData(Node currentNode)
{
{
const string OBJECT_COLUMN_KEY = "Object";
const string ESTIMATED_ROWS_COLUMN_KEY = "EstimateRows";
const string ACTUAL_ROWS_COLUMN_KEY = "ActualRows";
@@ -197,7 +199,7 @@ namespace Microsoft.SqlTools.ServiceLayer.ExecutionPlan
{
ColumnName = SR.Object,
DataType = PropertyValueDataType.String,
DisplayValue = ((ExpandableObjectWrapper)currentNode[OBJECT_COLUMN_KEY]).DisplayName
DisplayValue = ((ExpandableObjectWrapper)currentNode[OBJECT_COLUMN_KEY]).DisplayName
});
}