예제 #1
0
        public void SortMergeInnerJoin()
        {
            using (InnerMergeJoinUsersToPeopleByEmail join = new InnerMergeJoinUsersToPeopleByEmail())
            {
                join.Left(new GenericEnumerableOperation(left))
                .Right(new GenericEnumerableOperation(right));
                join.PrepareForExecution(new SingleThreadedPipelineExecuter());
                IEnumerable <Row> result = join.Execute(null);
                List <Row>        items  = new List <Row>(result);

                Assert.Single(items);
                Assert.Equal(3, items[0]["person_id"]);
            }
        }
예제 #2
0
        public void SortMergeInnerJoin()
        {
            using (InnerMergeJoinUsersToPeopleByEmail join = new InnerMergeJoinUsersToPeopleByEmail())
            {
                join.Left(new GenericEnumerableOperation(left))
                    .Right(new GenericEnumerableOperation(right));
                join.PrepareForExecution(new SingleThreadedPipelineExecuter());
                IEnumerable<Row> result = join.Execute(null);
                List<Row> items = new List<Row>(result);

                Assert.Equal(1, items.Count);
                Assert.Equal(3, items[0]["person_id"]);
            }
        }