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