Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
SeaRise committed Jul 8, 2022
1 parent 6d8f89c commit fbb3d22
Showing 1 changed file with 93 additions and 121 deletions.
214 changes: 93 additions & 121 deletions dbms/src/Flash/tests/gtest_interpreter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -103,15 +103,12 @@ try
Union: <for test>
Expression x 10: <final projection>
Expression: <projection>
Expression: <before projection>
Expression: <final projection>
Expression: <projection>
Expression: <before projection>
Expression: <final projection>
Expression: <projection>
Expression: <final projection>
Expression: <projection>
Expression: <final projection>
Expression: <projection>
Expression: <before projection>
Expression: <final projection>
MockTableScan)";
MockTableScan)";
ASSERT_BLOCKINPUTSTREAM_EQAUL(expected, request, 10);
}

Expand All @@ -125,16 +122,14 @@ Union: <for test>
Union: <for test>
Expression x 10: <final projection>
Expression: <projection>
Expression: <before projection>
SharedQuery: <restore concurrency>
Expression: <final projection>
MergeSorting, limit = 10
Union: <for partial order>
PartialSorting x 10: limit = 10
Expression: <projection>
Expression: <before projection>
Expression: <final projection>
MockTableScan)";
SharedQuery: <restore concurrency>
Expression: <final projection>
MergeSorting, limit = 10
Union: <for partial order>
PartialSorting x 10: limit = 10
Expression: <projection>
Expression: <final projection>
MockTableScan)";
ASSERT_BLOCKINPUTSTREAM_EQAUL(expected, request, 10);
}

Expand All @@ -150,22 +145,18 @@ Union: <for test>
Union: <for test>
Expression x 10: <final projection>
Expression: <projection>
Expression: <before projection>
Expression: <final projection>
SharedQuery: <restore concurrency>
ParallelAggregating, max_threads: 10, final: true
Expression x 10: <before aggregation>
Expression: <projection>
Expression: <before projection>
SharedQuery: <restore concurrency>
Expression: <final projection>
MergeSorting, limit = 10
Union: <for partial order>
PartialSorting x 10: limit = 10
Expression: <projection>
Expression: <before projection>
Expression: <final projection>
MockTableScan)";
Expression: <final projection>
SharedQuery: <restore concurrency>
ParallelAggregating, max_threads: 10, final: true
Expression x 10: <projection>
SharedQuery: <restore concurrency>
Expression: <final projection>
MergeSorting, limit = 10
Union: <for partial order>
PartialSorting x 10: limit = 10
Expression: <projection>
Expression: <final projection>
MockTableScan)";
ASSERT_BLOCKINPUTSTREAM_EQAUL(expected, request, 10);
}

Expand All @@ -188,27 +179,22 @@ Union: <for test>
Limit x 10, limit = 10
Expression: <final projection>
Expression: <projection>
Expression: <before projection>
Expression: <final projection>
Expression: <before order and select>
Filter: <execute where>
Expression: <projection>
Expression: <before projection>
Expression: <final projection>
SharedQuery: <restore concurrency>
ParallelAggregating, max_threads: 10, final: true
Expression x 10: <before aggregation>
Expression: <projection>
Expression: <before projection>
SharedQuery: <restore concurrency>
Expression: <final projection>
MergeSorting, limit = 10
Union: <for partial order>
PartialSorting x 10: limit = 10
Expression: <projection>
Expression: <before projection>
Expression: <final projection>
MockTableScan)";
Expression: <final projection>
Expression: <before order and select>
Filter: <execute where>
Expression: <projection>
Expression: <final projection>
SharedQuery: <restore concurrency>
ParallelAggregating, max_threads: 10, final: true
Expression x 10: <projection>
SharedQuery: <restore concurrency>
Expression: <final projection>
MergeSorting, limit = 10
Union: <for partial order>
PartialSorting x 10: limit = 10
Expression: <projection>
Expression: <final projection>
MockTableScan)";
ASSERT_BLOCKINPUTSTREAM_EQAUL(expected, request, 10);
}

Expand All @@ -222,15 +208,12 @@ Union: <for test>
Union: <for test>
Expression x 10: <final projection>
Expression: <projection>
Expression: <before projection>
Expression: <final projection>
Expression: <projection>
Expression: <before projection>
Expression: <final projection>
Expression: <projection>
Expression: <final projection>
Expression: <projection>
Expression: <final projection>
Expression: <projection>
Expression: <before projection>
Expression: <final projection>
MockExchangeReceiver)";
MockExchangeReceiver)";
ASSERT_BLOCKINPUTSTREAM_EQAUL(expected, request, 10);
}

Expand All @@ -246,15 +229,12 @@ Union: <for test>
MockExchangeSender x 10
Expression: <final projection>
Expression: <projection>
Expression: <before projection>
Expression: <final projection>
Expression: <projection>
Expression: <before projection>
Expression: <final projection>
Expression: <projection>
Expression: <final projection>
Expression: <projection>
Expression: <final projection>
Expression: <projection>
Expression: <before projection>
Expression: <final projection>
MockExchangeReceiver)";
MockExchangeReceiver)";
ASSERT_BLOCKINPUTSTREAM_EQAUL(expected, request, 10);
}
}
Expand Down Expand Up @@ -294,17 +274,16 @@ Union: <for test>
Union: <for test>
Expression x 10: <final projection>
Expression: <projection>
Expression: <before projection>
Expression: <final projection>
SharedQuery: <restore concurrency>
Expression: <cast after window>
Window, function: {row_number}, frame: {type: Rows, boundary_begin: Current, boundary_end: Current}
Expression: <final projection>
MergeSorting, limit = 0
Union: <for partial order>
PartialSorting x 10: limit = 0
Expression: <final projection>
MockTableScan)";
Expression: <final projection>
SharedQuery: <restore concurrency>
Expression: <cast after window>
Window, function: {row_number}, frame: {type: Rows, boundary_begin: Current, boundary_end: Current}
Expression: <final projection>
MergeSorting, limit = 0
Union: <for partial order>
PartialSorting x 10: limit = 0
Expression: <final projection>
MockTableScan)";
ASSERT_BLOCKINPUTSTREAM_EQAUL(expected, request, 10);
}

Expand All @@ -319,22 +298,20 @@ Union: <for test>
Union: <for test>
Expression x 10: <final projection>
Expression: <projection>
Expression: <before projection>
Expression: <final projection>
SharedQuery: <restore concurrency>
Expression: <cast after window>
Window, function: {row_number}, frame: {type: Rows, boundary_begin: Current, boundary_end: Current}
Union: <merge into one for window input>
Expression x 10: <final projection>
Expression: <projection>
Expression: <before projection>
SharedQuery: <restore concurrency>
Expression: <final projection>
MergeSorting, limit = 0
Union: <for partial order>
PartialSorting x 10: limit = 0
Expression: <final projection>
MockTableScan)";
Expression: <final projection>
SharedQuery: <restore concurrency>
Expression: <cast after window>
Window, function: {row_number}, frame: {type: Rows, boundary_begin: Current, boundary_end: Current}
Union: <merge into one for window input>
Expression x 10: <final projection>
Expression: <projection>
SharedQuery: <restore concurrency>
Expression: <final projection>
MergeSorting, limit = 0
Union: <for partial order>
PartialSorting x 10: limit = 0
Expression: <final projection>
MockTableScan)";
ASSERT_BLOCKINPUTSTREAM_EQAUL(expected, request, 10);
}
}
Expand Down Expand Up @@ -499,11 +476,10 @@ CreatingSets
Expression x 10: <final projection>
SharedQuery: <restore concurrency>
ParallelAggregating, max_threads: 10, final: true
Expression x 10: <before aggregation>
Expression: <remove useless column after join>
HashJoinProbe: <join probe, join_executor_id = Join_2>
Expression: <final projection>
MockTableScan)";
Expression x 10: <remove useless column after join>
HashJoinProbe: <join probe, join_executor_id = Join_2>
Expression: <final projection>
MockTableScan)";
ASSERT_BLOCKINPUTSTREAM_EQAUL(expected, request, 10);
}

Expand All @@ -529,15 +505,13 @@ CreatingSets
Expression x 10: <final projection>
SharedQuery: <restore concurrency>
ParallelAggregating, max_threads: 10, final: true
Expression x 10: <before aggregation>
Expression: <remove useless column after join>
HashJoinProbe: <join probe, join_executor_id = Join_2>
Expression: <append join key and join filters for probe side>
Expression: <final projection>
MockTableScan
Expression x 10: <before aggregation>
Expression: <remove useless column after join>
NonJoined: <add stream with non_joined_data if full_or_right_join>)";
Expression x 10: <remove useless column after join>
HashJoinProbe: <join probe, join_executor_id = Join_2>
Expression: <append join key and join filters for probe side>
Expression: <final projection>
MockTableScan
Expression x 10: <remove useless column after join>
NonJoined: <add stream with non_joined_data if full_or_right_join>)";
ASSERT_BLOCKINPUTSTREAM_EQAUL(expected, request, 10);
}

Expand Down Expand Up @@ -571,15 +545,13 @@ CreatingSets
Expression: <before order and select>
SharedQuery: <restore concurrency>
ParallelAggregating, max_threads: 20, final: true
Expression x 20: <before aggregation>
Expression: <remove useless column after join>
HashJoinProbe: <join probe, join_executor_id = Join_2>
Expression: <append join key and join filters for probe side>
Expression: <final projection>
MockExchangeReceiver
Expression x 20: <before aggregation>
Expression: <remove useless column after join>
NonJoined: <add stream with non_joined_data if full_or_right_join>)";
Expression x 20: <remove useless column after join>
HashJoinProbe: <join probe, join_executor_id = Join_2>
Expression: <append join key and join filters for probe side>
Expression: <final projection>
MockExchangeReceiver
Expression x 20: <remove useless column after join>
NonJoined: <add stream with non_joined_data if full_or_right_join>)";
ASSERT_BLOCKINPUTSTREAM_EQAUL(expected, request, 20);
}
}
Expand Down

0 comments on commit fbb3d22

Please sign in to comment.