1 instantiation of PlanCompiler
System.Data.Entity (1)
System\Data\Query\PlanCompiler\PlanCompiler.cs (1)
171PlanCompiler pc = new PlanCompiler(ctree);
303 references to PlanCompiler
System.Data.Entity (303)
System\Data\EntityClient\EntityCommandDefinition.cs (1)
73PlanCompiler.Compile(commandTree, out mappedCommandList, out columnMap, out columnCount, out _entitySets);
System\Data\Mapping\FunctionImportMappingComposable.cs (1)
110PlanCompiler.Assert(rootProject.Op.OpType == OpType.PhysicalProject, "Expected a physical projectOp at the root of the tree - found " + rootProject.Op.OpType);
System\Data\Mapping\ViewGeneration\GeneratedView.cs (1)
215PlanCompiler.Assert(itree.Root.Op.OpType == OpType.PhysicalProject,
System\Data\Query\InternalTrees\ColumnMapCopier.cs (1)
232System.Data.Query.PlanCompiler.PlanCompiler.Assert(false, "unexpected MultipleDiscriminatorPolymorphicColumnMap in ColumnMapCopier");
System\Data\Query\InternalTrees\Visitors.cs (1)
825pc.PlanCompiler.Assert(false, "Not implemented op type");
System\Data\Query\PlanCompiler\AggregatePushdown.cs (5)
479PlanCompiler.Assert(physicalProjectOp.Outputs.Count == 1, "PhysicalProject should only have one output at this stage"); 743PlanCompiler.Assert(op.Table.Columns.Count == 1, "Expected one column before NTE"); 765PlanCompiler.Assert(n.Children.Count == 1, "Aggregate Function must have one argument"); 847internal static void Process(PlanCompiler planCompilerState) 903PlanCompiler.Assert(definingGroupOp.Inputs.Count == 1, "There should be one input var to GroupByInto at this stage");
System\Data\Query\PlanCompiler\CodeGen.cs (3)
59internal static void Process(PlanCompiler compilerState, out List<ProviderCommandInfo> childCommands, out ColumnMap resultColumnMap, out int columnCount) 68private CodeGen(PlanCompiler compilerState) 145private PlanCompiler m_compilerState;
System\Data\Query\PlanCompiler\ColumnMapProcessor.cs (8)
56PlanCompiler.Assert(varInfo.NewVars != null && varInfo.NewVars.Count > 0, "No new Vars specified"); 83PlanCompiler.Assert(false, "Could not GetNextVar"); 228PlanCompiler.Assert(edmProperty != null, "EntityType key member is not property?"); 237PlanCompiler.Assert(edmKeyProperty != null, "EntityType key member is not property?"); 239PlanCompiler.Assert(keyColumnMap != null, "keyColumnMap is null"); 390PlanCompiler.Assert(null != baseTypeColumnMap, "Didn't find requested type in polymorphic type hierarchy?"); 406PlanCompiler.Assert(typeInfo.Type.EdmType is md.RowType, "not RowType"); 549PlanCompiler.Assert(entitySet != null, "Expected non-null entityset when no entitysetid is required. Entity type = " + entityType);
System\Data\Query\PlanCompiler\ColumnMapTranslator.cs (1)
375System.Data.Query.PlanCompiler.PlanCompiler.Assert(false, "unexpected MultipleDiscriminatorPolymorphicColumnMap in ColumnMapTranslator");
System\Data\Query\PlanCompiler\ConstraintManager.cs (2)
157PlanCompiler.Assert((md.RelationshipMultiplicity.ZeroOrOne == fromEnd.RelationshipMultiplicity || md.RelationshipMultiplicity.One == fromEnd.RelationshipMultiplicity), "from-end of relationship constraint cannot have multiplicity greater than 1"); 189PlanCompiler.Assert(parentOver == childOver, "key count mismatch");
System\Data\Query\PlanCompiler\CTreeGenerator.cs (39)
221PlanCompiler.Assert(TypeSemantics.IsCollectionType(publisher.ResultType), "non-collection type used as RelOpInfo publisher"); 275PlanCompiler.Assert(!_referenceGroup, "SwitchToGroupReference called more than once on the same GroupByScope?"); 371PlanCompiler.Assert(_relOpState.ContainsKey(expr),"not a relOp expression?"); 405PlanCompiler.Assert(inputNode.Op is RelOp, "Non-RelOp used as DbExpressionBinding Input"); 427PlanCompiler.Assert(inputState != null && inputState.PublisherName != null && inputState.PublishedVars != null , "Invalid RelOpInfo produced by DbExpressionBinding Input"); 469PlanCompiler.Assert(_bindingScopes.Count > 0, "ExitExpressionBindingScope called on empty ExpressionBindingScope stack"); 473PlanCompiler.Assert(bindingScope == scope, "ExitExpressionBindingScope called on incorrect expression"); 500PlanCompiler.Assert(_bindingScopes.Count > 0, "ExitGroupByScope called on empty ExpressionBindingScope stack"); 504PlanCompiler.Assert(groupScope == scope, "ExitGroupByScope called on incorrect expression"); 528PlanCompiler.Assert(defOp != null, "VarDefListOp contained non-VarDefOp child node"); 529PlanCompiler.Assert(defOp.Var is ComputedVar, "VarDefOp defined non-Computed Var"); 549PlanCompiler.Assert(varDefListNode.Op is VarDefListOp, "EnterVarDefListScope called with non-VarDefListOp"); 558PlanCompiler.Assert(_varScopes.Count > 0, "ExitVarDefScope called on empty VarDefScope stack"); 634PlanCompiler.Assert(retExpr != null, string.Format(CultureInfo.InvariantCulture, "Unresolvable Var used in Command: VarType={0}, Id={1}", Enum.GetName(typeof(VarType), referencedVar.VarType), referencedVar.Id)); 647PlanCompiler.Assert(2 == n.Children.Count, string.Format(CultureInfo.InvariantCulture, "Non-Binary {0} encountered", n.Op.GetType().Name)); 652PlanCompiler.Assert(n.Children.Count > index, "VisitChild called with invalid index"); 789PlanCompiler.Assert(resultExpr != null, string.Format(CultureInfo.InvariantCulture, "ArithmeticOp OpType not recognized: {0}", Enum.GetName(typeof(OpType), op.OpType))); 807PlanCompiler.Assert(caseCount > 1, "Invalid CaseOp: At least 2 child Nodes (1 When/Then pair) must be present"); 897PlanCompiler.Assert(compExpr != null, string.Format(CultureInfo.InvariantCulture, "ComparisonOp OpType not recognized: {0}", Enum.GetName(typeof(OpType), op.OpType))); 956PlanCompiler.Assert(condExpr != null, string.Format(CultureInfo.InvariantCulture, "ConditionalOp OpType not recognized: {0}", Enum.GetName(typeof(OpType), op.OpType))); 980PlanCompiler.Assert(false, "AggregateOp encountered outside of GroupByOp"); 1284PlanCompiler.Assert(op.Table.TableMetadata.Extent != null, "Invalid TableMetadata used in ScanTableOp - no Extent specified"); 1289PlanCompiler.Assert(!n.HasChild0, "views are not expected here"); 1322PlanCompiler.Assert(n.Child0.Op.OpType == OpType.VarDef, 1332PlanCompiler.Assert(expr.ResultType.EdmType.BuiltInTypeKind == BuiltInTypeKind.CollectionType, 1491PlanCompiler.Assert(TypeSemantics.IsPrimitiveType(predicateExpr.ResultType, PrimitiveTypeKind.Boolean), "Invalid FilterOp Predicate (non-ScalarOp or non-Boolean result)"); 1558PlanCompiler.Assert(!n.HasChild1, "SortOp can have only one child"); 1581PlanCompiler.Assert(!withTies, "Limit with Ties is not currently supported"); 1592PlanCompiler.Assert(!nullSkip || !nullLimit, "ConstrainedSortOp with no Skip Count and no Limit?"); 1596PlanCompiler.Assert(nullSkip, "ConstrainedSortOp without SortKeys cannot have Skip Count"); 1737PlanCompiler.Assert(aggRootNode.Op is VarDefListOp, "Invalid Aggregates VarDefListOp Node encountered in GroupByOp"); 1741PlanCompiler.Assert(aggVarDef != null, "Non-VarDefOp Node encountered as child of Aggregates VarDefListOp Node"); 1744PlanCompiler.Assert(aggVar is ComputedVar, "Non-ComputedVar encountered in Aggregate VarDefOp"); 1749PlanCompiler.Assert(funcAggOp != null, "Non-Aggregate Node encountered as child of Aggregate VarDefOp Node"); 1760PlanCompiler.Assert(outputAggVars.Contains(aggVar), "Defined aggregate Var not in Output Aggregate Vars list?"); 2181PlanCompiler.Assert(false, "Record columns don't match output vars"); 2309PlanCompiler.Assert(false, "Unexpected VarDefOp"); 2319PlanCompiler.Assert(false, "Unexpected VarDefListOp"); 2340PlanCompiler.Assert(n.Children.Count == 1, "more than one input to physicalProjectOp?");
System\Data\Query\PlanCompiler\ITreeGenerator.cs (43)
78PlanCompiler.Assert(name == _varName,"huh?"); 116PlanCompiler.Assert(_arguments.ContainsKey(name), "LambdaScope indexer called for invalid Var"); 157PlanCompiler.Assert(_arguments.ContainsKey(name), "LambdaScope indexer called for invalid Var"); 163PlanCompiler.Assert(sources.Count == copies.Count, "Source/Copy Node count mismatch"); 186PlanCompiler.Assert(varMappings.ContainsKey(sourceVar), "No mapping found for Var in Var to Var map from OpCopier"); 275PlanCompiler.Assert(ctree.Query.ExpressionKind == DbExpressionKind.Project, 397PlanCompiler.Assert(false, "IsPredicate must be called on a visited lambda expression"); 416PlanCompiler.Assert(false, "IsPredicate must be called on a visited function expression"); 510PlanCompiler.Assert(TypeSemantics.IsCollectionType(resultType), "RelOp with non-Collection result type"); 584PlanCompiler.Assert(!node.Op.IsRelOp, "unexpected relOp as predicate?"); 650PlanCompiler.Assert(scalar != null, "An expression in a CQT produced a non-ScalarOp and non-RelOp output Op"); 657PlanCompiler.Assert(TypeSemantics.IsCollectionType(scalar.Type), "An expression used as a RelOp argument was neither a RelOp or a collection"); 666PlanCompiler.Assert(inputNode.HasChild0, "CollectOp without argument"); 669PlanCompiler.Assert(inputNode.Child0.HasChild0, "PhysicalProjectOp without argument"); 670PlanCompiler.Assert(inputNode.Child0.Child0.Op.IsRelOp, "PhysicalProjectOp applied to non-RelOp input"); 692PlanCompiler.Assert(unnest.Table.Columns.Count == 1, "Unnest of collection ScalarOp produced unexpected number of columns (1 expected)"); 727PlanCompiler.Assert(input.Op.IsRelOp, "unexpected non-RelOp?"); 751PlanCompiler.Assert(input.Op.IsRelOp, "unexpected non-RelOp?"); 808PlanCompiler.Assert(inputNode != null, "DbExpressionBinding.Expression produced null conversion"); 819PlanCompiler.Assert(boundVar != null, "No Var found for Input Op"); 849PlanCompiler.Assert(retScope != null, "ExitExpressionBinding called without ExpressionBindingScope on top of scope stack"); 867PlanCompiler.Assert(retScope != null, "ExitGroupExpressionBinding called without ExpressionBindingScope on top of scope stack"); 919PlanCompiler.Assert(retScope != null, "ExitLambdaFunction called without LambdaScope on top of scope stack"); 927PlanCompiler.Assert(edmFunction == expandingEdmFunction, "Function expansion stack corruption: unexpected function at the top of the stack"); 1023PlanCompiler.Assert(false, "CQT VarRef could not be resolved in the variable scope stack"); 1162PlanCompiler.Assert(node.Op.IsScalarOp, "I want a scalar op"); 1247PlanCompiler.Assert(e.Instance != null, "Static properties are not supported"); 1285PlanCompiler.Assert(memberIdx > -1, "The specified property was not found"); 1591PlanCompiler.Assert(DbExpressionKind.Except == expression.ExpressionKind || 1596PlanCompiler.Assert(TypeSemantics.IsCollectionType(expression.ResultType), "SetOp DbExpression does not have collection result type?"); 2004PlanCompiler.Assert(TypeSemantics.IsCollectionType(e.Argument.ResultType), "Non-Collection Type Argument in DbOfTypeExpression"); 2199PlanCompiler.Assert(null != _discriminatedViewTopProject, "if a project matches the pattern, there must be a corresponding discriminator map"); 2283PlanCompiler.Assert(DbExpressionKind.CrossJoin == e.ExpressionKind || 2364PlanCompiler.Assert(joinOp != null, "Unrecognized JoinOp specified in DbJoinExpression, no JoinOp was produced"); 2371PlanCompiler.Assert(joinCondNode != null, "Non CrossJoinOps must specify a join condition"); 2416PlanCompiler.Assert(DbExpressionKind.CrossApply == e.ExpressionKind || DbExpressionKind.OuterApply == e.ExpressionKind, "Unrecognized DbExpressionKind specified in DbApplyExpression"); 2513PlanCompiler.Assert(funcAgg != null, "Unrecognized DbAggregate used in DbGroupByExpression"); 2603PlanCompiler.Assert(keyOp != null, "GroupBy Key is not a ScalarOp"); 2709PlanCompiler.Assert(flattentedKeys.Count == copyFlattenedKeys.Count, "The flattened keys lists should have the same nubmer of elements"); 2772PlanCompiler.Assert(properties.Count != 0, "No nested properties for RowType"); 2823PlanCompiler.Assert(sortKeys.Count == 0, "Non-empty SortKey list before adding converted SortClauses"); 2838PlanCompiler.Assert(specOp != null, "DbSortClause Expression converted to non-ScalarOp"); 2960PlanCompiler.Assert(DbExpressionKind.Any == e.ExpressionKind || DbExpressionKind.All == e.ExpressionKind, "Invalid DbExpressionKind in DbQuantifierExpression");
System\Data\Query\PlanCompiler\JoinElimination.cs (4)
52private PlanCompiler m_compilerState; 63private JoinElimination(PlanCompiler compilerState) 72internal static bool Process(PlanCompiler compilerState) 143PlanCompiler.Assert(m_compilerState != null, "Plan compiler cannot be null");
System\Data\Query\PlanCompiler\JoinGraph.cs (20)
114PlanCompiler.Assert(children != null, "null children (gasp!)"); 371PlanCompiler.Assert(m_leftVars.Count == m_rightVars.Count, "Count mismatch: " + m_leftVars.Count + "," + m_rightVars.Count); 432PlanCompiler.Assert((joinOpType == OpType.LeftOuterJoin || joinOpType == OpType.InnerJoin), 524PlanCompiler.Assert(m_root != null, "The root isn't a join?"); 611PlanCompiler.Assert(v.VarType == VarType.Column, "Expected a columnVar. Found " + v.VarType); 994PlanCompiler.Assert(edge1.Right == edge2.Left, "need a common table for transitive predicate generation"); 1269PlanCompiler.Assert(fkConstraints != null && fkConstraints.Count > 0, "invalid fk constraints?"); 1485PlanCompiler.Assert(tableVars != null && replacementVars != null, "null vars"); 1486PlanCompiler.Assert(tableVars.Count == replacementVars.Count, "var count mismatch"); 1487PlanCompiler.Assert(tableVars.Count > 0, "no vars in the table ?"); 1906PlanCompiler.Assert(joinEdge.JoinKind == JoinKind.Inner, "Expected inner join"); 1935PlanCompiler.Assert(joinEdge.JoinKind == JoinKind.LeftOuter, "Expected left-outer-join"); 1936PlanCompiler.Assert(joinEdge.Left.Id < joinEdge.Right.Id, 2206PlanCompiler.Assert(fkConstraints != null && fkConstraints.Count > 0, "invalid fk constraints?"); 2226PlanCompiler.Assert(fkConstraints != null && fkConstraints.Count > 0, "invalid fk constraints?"); 2300PlanCompiler.Assert(newVar2 != null, "null var mapping?"); 2310PlanCompiler.Assert(newNode != null, "Resulting node tree is null"); 2311PlanCompiler.Assert(predicates == null || predicates.Count == 0, "Leaking predicates?"); 2352PlanCompiler.Assert(predNode != null, "Null predicate?"); 2471PlanCompiler.Assert(predicates == null || predicates.Count == 0, "Leaking predicates");
System\Data\Query\PlanCompiler\KeyPullup.cs (2)
308PlanCompiler.Assert(0 == i, "right branch has a discriminator var that the left branch doesn't have?"); 357PlanCompiler.Assert(varDefNodes.Count != 0, "no new nodes?");
System\Data\Query\PlanCompiler\NestPullup.cs (23)
51private PlanCompiler m_compilerState; 82private NestPullup(PlanCompiler compilerState) 92internal static void Process(PlanCompiler compilerState) 103PlanCompiler.Assert(Command.Root.Op.OpType == OpType.PhysicalProject, "root node is not physicalProject?"); 130PlanCompiler.Assert(n.Op.OpType != OpType.SingleStreamNest, "illegal singleStreamNest?"); 369PlanCompiler.Assert(newOutputs.IsSet(inputVar), "The constant var is not present after NestPull up over the input of ExistsOp."); 725PlanCompiler.Assert(n.HasChild3 && n.Child3.Children.Count > 0, "GroupByIntoOp with no group aggregates?"); 929PlanCompiler.Assert(newOutputVars.IsSet(ci.CollectionVar), "collectionVar not in output Vars?"); // I must have missed something... 940PlanCompiler.Assert(newOutputVars.IsSet(ci.CollectionVar), "collectionVar not in output Vars?"); // I must have missed something... 1001PlanCompiler.Assert(definingExprNode.HasChild0, "collect without input?"); 1002PlanCompiler.Assert(OpType.PhysicalProject == definingExprNode.Child0.Op.OpType, "collect without physicalProject?"); 1436PlanCompiler.Assert(newProjectOpChildren.Count == 0, "outputs is empty with non-zero count of children?"); 1639PlanCompiler.Assert(inputNestOp is MultiStreamNestOp, "Unexpected SingleStreamNestOp?"); 1745PlanCompiler.Assert(n.Child0.Op.OpType == OpType.VarDef, "Unnest without VarDef input?"); 1746PlanCompiler.Assert(((VarDefOp)n.Child0.Op).Var == op.Var, "Unnest var not found?"); 1747PlanCompiler.Assert(n.Child0.HasChild0, "VarDef without input?"); 1761PlanCompiler.Assert(newNode.HasChild0, "collect without input?"); 1764PlanCompiler.Assert(newNode.Op.OpType == OpType.PhysicalProject, "collect without physicalProject?"); 1779PlanCompiler.Assert(found, "Could not find a definition for a referenced collection var"); 1783PlanCompiler.Assert(newNode.Op.OpType == OpType.PhysicalProject, "driving node is not physicalProject?"); 1792PlanCompiler.Assert(newNode.HasChild0, "physicalProject without input?"); 1927PlanCompiler.Assert(n.Children.Count == 1, "multiple inputs to physicalProject?"); 2056PlanCompiler.Assert(!sortVars.IsSet(ssnOp.Discriminator), "prefix sort on discriminator?");
System\Data\Query\PlanCompiler\NominalTypeEliminator.cs (55)
110private readonly PlanCompiler m_compilerState; 121private NominalTypeEliminator(PlanCompiler compilerState, 147PlanCompiler compilerState, 202PlanCompiler.Assert(rootNode.Op.OpType == OpType.PhysicalProject, "root node is not PhysicalProjectOp?"); 369PlanCompiler.Assert(node.Op.IsScalarOp, "Attempting SoftCast around non-ScalarOp?"); 458PlanCompiler.Assert(opKind == OperationKind.IsNull || opKind == OperationKind.Equality, 511PlanCompiler.Assert(opKind == OperationKind.IsNull, "complex types not equality-comparable"); 512PlanCompiler.Assert(typeInfo.HasNullSentinelProperty, "complex type with no null sentinel property: can't handle isNull"); 527PlanCompiler.Assert(false, "Unknown type"); 538PlanCompiler.Assert(opKind != OperationKind.All, "unexpected attempt to GetPropertyRefs(...,OperationKind.All)"); 702PlanCompiler.Assert(originalRowType != null, "Unexpected TVF return type (must be row): " + unnestOpTableTypeInfo.Type.ToString()); 724PlanCompiler.Assert(columnIndex >= 0, "Can't find a column in the TVF result type"); 736PlanCompiler.Assert(var != null, "TVFs returning a collection of rows with non-primitive properties are not supported"); 780PlanCompiler.Assert(chi.Op is VarDefOp, "VarDefOp expected"); 825PlanCompiler.Assert(definingExprNode.Op.OpType != OpType.Function, "Flattening of TVF output is not allowed."); 958PlanCompiler.Assert(varRefColumnMap != null, "Encountered a SimpleCollectionColumnMap element that is not VarRefColumnMap when expanding a column map in NominalTypeEliminator."); 974PlanCompiler.Assert(typeInfo.RootType.FlattenedType.Properties.Count == varInfo.NewVars.Count, 1259PlanCompiler.Assert(inputVar != null, "cannot identify Var for the input node to the ScanViewOp"); 1261PlanCompiler.Assert(op.Table.Columns.Count == 1, "table for scanViewOp has more than on column?"); 1269PlanCompiler.Assert(false, "didn't find inputVar for scanViewOp?"); 1348PlanCompiler.Assert(newChildren.Count == 1, "Flattening unnest var produced more than one Var."); 1357PlanCompiler.Assert(newUnnestVar != null, "newUnnestVar must be initialized in the TVF case."); 1380PlanCompiler.Assert(processingTVF == null, "TVFs returning a collection of values of a non-structured type are not supported"); 1427PlanCompiler.Assert(Command.EqualTypes(tvfReturnType, unnestTableColumnVar.Type.EdmType), "Unexpected TVF return type (row type is expected)."); 1520PlanCompiler.Assert(null != setOpChild, "null setOpChild?"); 1521PlanCompiler.Assert(null != varMap, "null varMap?"); 1522PlanCompiler.Assert(null != newComputedVars, "null newComputedVars?"); 1609PlanCompiler.Assert(ret, "Could not find VarInfo for prop " + prop.Name); 1733PlanCompiler.Assert(n.Child0.Op.OpType == OpType.NewRecord, "Expected a record constructor here. Found " + n.Child0.Op.OpType + " instead"); 1758PlanCompiler.Assert(outputTypeInfo.HasNullSentinelProperty && !inputTypeInfo.HasNullSentinelProperty, "NullSentinelProperty mismatch on input?"); 1770PlanCompiler.Assert(!outputTypeInfo.HasNullSentinelProperty && inputTypeInfo.HasNullSentinelProperty, "NullSentinelProperty mismatch on output?"); 1806PlanCompiler.Assert(md.TypeSemantics.IsNominalType(oldType) || 1813PlanCompiler.Assert(Command.EqualTypes(newType, n.Child0.Op.Type), 1836PlanCompiler.Assert(md.TypeSemantics.IsPrimitiveType(n.Child0.Op.Type), "Primitive type expected."); 1844PlanCompiler.Assert(md.TypeSemantics.IsPrimitiveType(n.Child0.Op.Type, md.PrimitiveTypeKind.Geography) || md.TypeSemantics.IsPrimitiveType(n.Child0.Op.Type, md.PrimitiveTypeKind.Geometry), "Union spatial type expected."); 1875PlanCompiler.Assert(n.Children.Count == 0, "Constant operations don't have children."); 1876PlanCompiler.Assert(op.Value != null, "Value must not be null"); 2005PlanCompiler.Assert(currentNullSentinel.Op.Type.EdmEquals(integerType), "Column that is expected to be a null sentinel is not of Integer type."); 2128PlanCompiler.Assert(!(md.TypeSemantics.IsComplexType(child0Type) || md.TypeSemantics.IsComplexType(child1Type)), "complex type?"); // cannot be a complex type 2129PlanCompiler.Assert(op.OpType == OpType.EQ || op.OpType == OpType.NE, "non-equality comparison of structured types?"); 2150PlanCompiler.Assert((properties1.Count == properties2.Count) && (values1.Count == values2.Count), "different shaped structured types?"); 2216PlanCompiler.Assert(properties.Count == values.Count && properties.Count > 0, "No properties returned from GetPropertyValues(IsNull)?"); 2283PlanCompiler.Assert(op.OpType == OpType.GetEntityRef || op.OpType == OpType.GetRefKey, "Expecting GetEntityRef or GetRefKey ops"); 2303PlanCompiler.Assert(op.OpType == OpType.GetEntityRef, 2316PlanCompiler.Assert(inputFieldValues.Count == outputFieldTypes.Count, "fieldTypes.Count mismatch?"); 2333PlanCompiler.Assert(op.OpType == OpType.Property || op.OpType == OpType.RelProperty, 2452PlanCompiler.Assert(outputFields[0] == outputTypeInfo.EntitySetIdProperty, "OutputField0 must be the entitySetId property"); 2456PlanCompiler.Assert(outputFields.Count == inputFields.Count, "Mismatched field count: Expected " + inputFields.Count + "; Got " + outputFields.Count); 2461PlanCompiler.Assert(outputFields.Count == inputFields.Count + 1, "Mismatched field count: Expected " + (inputFields.Count + 1) + "; Got " + outputFields.Count); 2475PlanCompiler.Assert(outputFields.Count == inputFields.Count, "Mismatched field count: Expected " + inputFields.Count + "; Got " + outputFields.Count); 2491PlanCompiler.Assert(inputFields[0] == inputTypeInfo.NullSentinelProperty, "InputField0 must be the null sentinel property"); 2512PlanCompiler.Assert(!TypeUtils.IsStructuredType(op.Type), 2681PlanCompiler.Assert(op.OpType == OpType.NewInstance || op.OpType == OpType.NewRecord || op.OpType == OpType.DiscriminatedNewEntity || op.OpType == OpType.NewEntity, 2754PlanCompiler.Assert(newEntityOp != null, "unexpected optype:" + op.OpType); 3026PlanCompiler.Assert(typeInfo.RootType.DiscriminatorMap != null, "should be used only for DiscriminatorMap type checks");
System\Data\Query\PlanCompiler\Normalizer.cs (6)
45private Normalizer(PlanCompiler planCompilerState) 56internal static void Process(PlanCompiler planCompilerState) 116PlanCompiler.Assert(collectionNode.Op.IsScalarOp, "non-scalar usage of Unnest?"); 117PlanCompiler.Assert(TypeSemantics.IsCollectionType(collectionNode.Op.Type), "non-collection usage for Unnest?"); 135PlanCompiler.Assert(TypeSemantics.IsCollectionType(op.Type), "non-TVF function?"); 240PlanCompiler.Assert(newNode != null, "failure to construct a functionOp?");
System\Data\Query\PlanCompiler\PlanCompiler.cs (4)
170PlanCompiler.Assert(ctree != null, "Expected a valid, non-null Command Tree input"); 171PlanCompiler pc = new PlanCompiler(ctree); 494PlanCompiler.Assert(cqtree != null, "Unexpected command tree kind. Only query command tree is supported."); 498PlanCompiler.Assert(m_command != null, "Unable to generate internal tree from Command Tree");
System\Data\Query\PlanCompiler\Predicate.cs (1)
80PlanCompiler.Assert(andTree != null, "null node passed to Predicate() constructor");
System\Data\Query\PlanCompiler\PreProcessor.cs (28)
139private PreProcessor(PlanCompiler planCompilerState) 154PlanCompiler planCompilerState, 309PlanCompiler.Assert(entitySet != null, "The target of a ScanTableOp must reference an EntitySet to be used with ExpandView"); 310PlanCompiler.Assert(entitySet.EntityContainer.DataSpace == DataSpace.CSpace, "Store entity sets cannot have Query Mapping Views and should not be used with ExpandView"); 374PlanCompiler.Assert(definingQuery != null, Strings.ADP_NoQueryMappingView(entitySet.EntityContainer.Name, entitySet.Name)); 484PlanCompiler.Assert(m_command.IsRelPropertyReferenced(navigateOp.RelProperty), 690PlanCompiler.Assert(entitySet != null, "Could not find entityset for relationshipset " + relationshipSet + ";association end " + targetEnd); 838PlanCompiler.Assert(relationshipSets.Count > 0, "expected at least one relationshipset here"); 839PlanCompiler.Assert(relProperty.FromEnd.RelationshipMultiplicity != RelationshipMultiplicity.Many, 866PlanCompiler.Assert(m_command.IsRelPropertyReferenced(inverseRelProperty), 908PlanCompiler.Assert(relationshipSets.Count > 0, "expected at least one relationshipset here"); 909PlanCompiler.Assert(relProperty.ToEnd.RelationshipMultiplicity == RelationshipMultiplicity.Many && 976PlanCompiler.Assert(m_command.IsRelPropertyReferenced(relProperty) || (relProperty.ToEnd.RelationshipMultiplicity == RelationshipMultiplicity.Many), 1093PlanCompiler.Assert(projectOp.Outputs.Count == 1, "input to ElementOp has more than one output var?"); 1123PlanCompiler.Assert(op.Function.IsComposableAttribute, "Cannot process a non-composable function inside query tree composition."); 1130PlanCompiler.Assert(functionImportMapping is FunctionImportMappingComposable, "Composable function import must have corresponding mapping."); 1150PlanCompiler.Assert(functionImportMappingComposable.TvfKeys != null && functionImportMappingComposable.TvfKeys.Length > 0, "Function imports returning entities must have inferred keys."); 1164PlanCompiler.Assert(scope == op.Function.EntitySet, "m_entityTypeScopes stack is broken"); 1171PlanCompiler.Assert(op.Function.EntitySet == null, "Entity type scope is not supported on functions that aren't mapped."); 1582PlanCompiler.Assert(false, "Could not find property " + member + " in type " + type.Name); 1602PlanCompiler.Assert(op.OpType == OpType.NewEntity || op.OpType == OpType.DiscriminatedNewEntity, 1611PlanCompiler.Assert(n.Children.Count > pos, "invalid position " + pos + "; total count = " + n.Children.Count); 1663PlanCompiler.Assert(scanTableOp.Table.Columns.Count == 1, 1752PlanCompiler.Assert(op.RelationshipProperties == null || 2111PlanCompiler.Assert(scanTableOp.Table.TableMetadata.Extent != null, "ScanTableOp must reference a table with an extent"); 2171PlanCompiler.Assert(scope == op.Table.TableMetadata.Extent, "m_entityTypeScopes stack is broken"); 2223PlanCompiler.Assert(ancestor != null, "unexpected SortOp as root node?"); 2340PlanCompiler.Assert(n.HasChild0, "projectOp without input?");
System\Data\Query\PlanCompiler\ProjectionPruner.cs (5)
109private PlanCompiler m_compilerState; 121private ProjectionPruner(PlanCompiler compilerState) 136internal static void Process(PlanCompiler compilerState) 148internal static Node Process(PlanCompiler compilerState, Node node) 654PlanCompiler.Assert(!n.HasChild0, "scanTable with an input?"); // no more views
System\Data\Query\PlanCompiler\PropertyPushdownHelper.cs (6)
206PlanCompiler.Assert(edmP != null, "EntityType had non-EdmProperty key member?"); 360PlanCompiler.Assert(md.TypeSemantics.IsEntityType(childOpType), "unexpected childOpType?"); 394PlanCompiler.Assert(childOp != null, "input to GetEntityRefOp is not a ScalarOp?"); 691PlanCompiler.Assert(!n.HasChild0, "scanTableOp with an input?"); 704PlanCompiler.Assert(op.Table.Columns.Count == 1, "ScanViewOp with multiple columns?"); 709PlanCompiler.Assert(inputVar != null, "cannot determine single Var from ScanViewOp's input");
System\Data\Query\PlanCompiler\PropertyRef.cs (1)
259PlanCompiler.Assert(!(innerProperty is NestedPropertyRef), "innerProperty cannot be a NestedPropertyRef");
System\Data\Query\PlanCompiler\ProviderCommandInfoUtils.cs (4)
58PlanCompiler.Assert(projectOp != null, "Expected root Op to be a physical Project"); 63PlanCompiler.Assert(cqtree != null, "null query command tree"); 67PlanCompiler.Assert(md.TypeSemantics.IsRowType(collType.TypeUsage), "command rowtype is not a record"); 107PlanCompiler.Assert(md.TypeSemantics.IsRowType(outputType), "PhysicalProjectOp result type is not a RowType?");
System\Data\Query\PlanCompiler\StructuredTypeInfo.cs (6)
170PlanCompiler.Assert(null != itree, "null itree?"); 233PlanCompiler.Assert(false, "no such entity set?"); 264PlanCompiler.Assert(!TypeUtils.IsStructuredType(type) || !m_typeInfoMapPopulated, 500PlanCompiler.Assert(TypeUtils.IsStructuredType(type), "expected structured type. Found " + type); 1002PlanCompiler.Assert(false, "property refs count and flattened type member count mismatch?"); 1113PlanCompiler.Assert(null != result, "unrecognized property type?");
System\Data\Query\PlanCompiler\SubqueryTrackingVisitor.cs (6)
38protected readonly PlanCompiler m_compilerState; 47protected SubqueryTrackingVisitor(PlanCompiler planCompilerState) 82PlanCompiler.Assert(ancestor != null, "no ancestors found?"); 206PlanCompiler.Assert( 240PlanCompiler.Assert(n.Op.OpType == OpType.InnerJoin || 243PlanCompiler.Assert(n.HasChild2, "missing second child to JoinOp?");
System\Data\Query\PlanCompiler\TransformationRules.cs (19)
89PlanCompiler.Assert(node.Op.IsScalarOp, "Expected a scalarOp: Found " + Dump.AutoString.ToString(node.Op.OpType)); 268PlanCompiler.Assert(varRefMap != null, "Null varRef map"); 321PlanCompiler.Assert(n == chi.Child0, "reusing varDef for different Node?"); 400internal TransformationRulesContext(PlanCompiler compilerState) 412private readonly PlanCompiler m_compilerState; 481PlanCompiler.Assert(m_relOpAncestors.Count != 0, "The RelOp ancestors stack is empty when post processing a RelOp subtree"); 483PlanCompiler.Assert(Object.ReferenceEquals(subtree, poppedNode), "The popped ancestor is not equal to the root of the subtree being post processed"); 763internal static bool Process(PlanCompiler compilerState, TransformationRulesGroup rulesGroup) 798private static bool Process(PlanCompiler compilerState, ReadOnlyCollection<ReadOnlyCollection<InternalTrees.Rule>> rulesTable, out bool projectionPruningRequired) 985PlanCompiler.Assert(constPred.IsFalse, "constant predicate must be either true or false"); 998PlanCompiler.Assert(newNodeArgs.Count > 0, "new args list must not be empty"); 1076PlanCompiler.Assert(node.Op.OpType == OpType.EQ || node.Op.OpType == OpType.NE, "unexpected comparison op type?"); 1194PlanCompiler.Assert(constantPredicateNode != null, "null constantPredicateOp?"); 1206PlanCompiler.Assert(otherNode == null, "Not Op with more than 1 child. Gasp!"); 1210PlanCompiler.Assert(false, "Unexpected OpType - " + node.Op.OpType); 1892PlanCompiler.Assert(joinOp.OpType == OpType.InnerJoin, "unexpected non-InnerJoin?"); 2013PlanCompiler.Assert(predOp.IsFalse, "unexpected non-false predicate?"); 2743PlanCompiler.Assert(varDefNode.Op.OpType == OpType.VarDef, "Expected VarDefOp. Found " + varDefNode.Op.OpType + " instead"); 3466PlanCompiler.Assert(joinNode.Op.OpType != OpType.LeftOuterJoin, "unexpected non-LeftOuterJoin");
System\Data\Query\PlanCompiler\TypeInfo.cs (4)
340PlanCompiler.Assert(p is md.EdmProperty, "Non-EdmProperty key members are not supported"); 441PlanCompiler.Assert(type.EdmType.BaseType == null, "only root types allowed here"); 600PlanCompiler.Assert(false, "no complex structure " + property + " found in TypeInfo"); 618PlanCompiler.Assert(false, "Unable to find property " + propertyRef.ToString() + " in type " + this.Type.EdmType.Identity);
System\Data\Query\PlanCompiler\VarInfo.cs (3)
130PlanCompiler.Assert(newVars.Count == newTypeProperties.Count, "count mismatch"); 317PlanCompiler.Assert(md.TypeSemantics.IsScalarType(v.Type), "The current variable should be of primitive or enum type."); 318PlanCompiler.Assert(md.TypeSemantics.IsScalarType(newVar.Type), "The new variable should be of primitive or enum type.");