forked from apache/flink
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FLINK-16935][table-planner-blink] Enable or delete most of the ignor…
…ed test cases in blink planner. This closes apache#11874
- Loading branch information
Showing
24 changed files
with
177 additions
and
292 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
90 changes: 90 additions & 0 deletions
90
...test/resources/org/apache/flink/table/planner/plan/stream/table/TemporalTableJoinTest.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
<?xml version="1.0" ?> | ||
<!-- | ||
Licensed to the Apache Software Foundation (ASF) under one or more | ||
contributor license agreements. See the NOTICE file distributed with | ||
this work for additional information regarding copyright ownership. | ||
The ASF licenses this file to you under the Apache License, Version 2.0 | ||
(the "License"); you may not use this file except in compliance with | ||
the License. You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
--> | ||
<Root> | ||
<TestCase name="testSimpleJoin"> | ||
<Resource name="planAfter"> | ||
<![CDATA[ | ||
Calc(select=[*(o_amount, rate) AS rate]) | ||
+- TemporalJoin(joinType=[InnerJoin], where=[AND(__TEMPORAL_JOIN_CONDITION(o_rowtime, rowtime, currency), =(currency, o_currency))], select=[o_amount, o_currency, o_rowtime, currency, rate, rowtime]) | ||
:- Exchange(distribution=[hash[o_currency]]) | ||
: +- DataStreamScan(table=[[default_catalog, default_database, Orders]], fields=[o_amount, o_currency, o_rowtime]) | ||
+- Exchange(distribution=[hash[currency]]) | ||
+- DataStreamScan(table=[[default_catalog, default_database, RatesHistory]], fields=[currency, rate, rowtime]) | ||
]]> | ||
</Resource> | ||
</TestCase> | ||
|
||
<TestCase name="testSimpleJoin2"> | ||
<Resource name="planAfter"> | ||
<![CDATA[ | ||
Calc(select=[*(o_amount, rate) AS rate]) | ||
+- TemporalJoin(joinType=[InnerJoin], where=[AND(__TEMPORAL_JOIN_CONDITION(o_rowtime, rowtime, currency), =(currency, o_currency))], select=[o_amount, o_currency, o_rowtime, currency, rate, rowtime]) | ||
:- Exchange(distribution=[hash[o_currency]]) | ||
: +- DataStreamScan(table=[[default_catalog, default_database, Orders]], fields=[o_amount, o_currency, o_rowtime]) | ||
+- Exchange(distribution=[hash[currency]]) | ||
+- DataStreamScan(table=[[default_catalog, default_database, RatesHistory]], fields=[currency, rate, rowtime]) | ||
]]> | ||
</Resource> | ||
</TestCase> | ||
|
||
<TestCase name="testSimpleProctimeJoin"> | ||
<Resource name="planAfter"> | ||
<![CDATA[ | ||
Calc(select=[*(o_amount, rate) AS rate]) | ||
+- TemporalJoin(joinType=[InnerJoin], where=[AND(__TEMPORAL_JOIN_CONDITION(o_proctime, currency), =(currency, o_currency))], select=[o_amount, o_currency, o_proctime, currency, rate, proctime]) | ||
:- Exchange(distribution=[hash[o_currency]]) | ||
: +- DataStreamScan(table=[[default_catalog, default_database, ProctimeOrders]], fields=[o_amount, o_currency, o_proctime]) | ||
+- Exchange(distribution=[hash[currency]]) | ||
+- DataStreamScan(table=[[default_catalog, default_database, ProctimeRatesHistory]], fields=[currency, rate, proctime]) | ||
]]> | ||
</Resource> | ||
</TestCase> | ||
|
||
<TestCase name="testTemporalTableFunctionOnTopOfQuery"> | ||
<Resource name="planAfter"> | ||
<![CDATA[ | ||
Calc(select=[*(o_amount, rate) AS rate]) | ||
+- TemporalJoin(joinType=[InnerJoin], where=[AND(__TEMPORAL_JOIN_CONDITION(o_rowtime, rowtime, currency), =(currency, o_currency))], select=[o_amount, o_currency, o_rowtime, currency, rate, rowtime]) | ||
:- Exchange(distribution=[hash[o_currency]]) | ||
: +- DataStreamScan(table=[[default_catalog, default_database, Orders]], fields=[o_amount, o_currency, o_rowtime]) | ||
+- Exchange(distribution=[hash[currency]]) | ||
+- Calc(select=[currency, *(rate, 2) AS rate, rowtime], where=[>(rate, 100)]) | ||
+- DataStreamScan(table=[[default_catalog, default_database, RatesHistory]], fields=[currency, rate, rowtime]) | ||
]]> | ||
</Resource> | ||
</TestCase> | ||
|
||
<TestCase name="testComplexJoin"> | ||
<Resource name="planAfter"> | ||
<![CDATA[ | ||
Join(joinType=[InnerJoin], where=[=(t3_secondary_key, secondary_key)], select=[rate, secondary_key, t3_comment, t3_secondary_key], leftInputSpec=[NoUniqueKey], rightInputSpec=[NoUniqueKey]) | ||
:- Exchange(distribution=[hash[secondary_key]]) | ||
: +- Calc(select=[*(o_amount, rate) AS rate, secondary_key]) | ||
: +- TemporalJoin(joinType=[InnerJoin], where=[AND(__TEMPORAL_JOIN_CONDITION(o_rowtime, rowtime, currency), OR(=(currency, o_currency), =(secondary_key, o_secondary_key)))], select=[o_rowtime, o_amount, o_currency, o_secondary_key, rowtime, currency, rate, secondary_key]) | ||
: :- Exchange(distribution=[single]) | ||
: : +- Calc(select=[rowtime AS o_rowtime, o_amount, o_currency, o_secondary_key]) | ||
: : +- DataStreamScan(table=[[default_catalog, default_database, Orders]], fields=[rowtime, o_comment, o_amount, o_currency, o_secondary_key]) | ||
: +- Exchange(distribution=[single]) | ||
: +- Calc(select=[rowtime, currency, rate, secondary_key], where=[>(rate, 110:BIGINT)]) | ||
: +- DataStreamScan(table=[[default_catalog, default_database, RatesHistory]], fields=[rowtime, comment, currency, rate, secondary_key]) | ||
+- Exchange(distribution=[hash[t3_secondary_key]]) | ||
+- DataStreamScan(table=[[default_catalog, default_database, ThirdTable]], fields=[t3_comment, t3_secondary_key]) | ||
]]> | ||
</Resource> | ||
</TestCase> | ||
</Root> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.