Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Table Model Subquery] Support Exists subquery #14739

Open
wants to merge 60 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
010aec8
Add support for row type && Add SemiJoinNode && Add uncorrelated InPr…
lancelly Dec 6, 2024
95d162c
add operator and workaround with RowType
lancelly Dec 8, 2024
9186e00
Fix mergesort join
lancelly Dec 8, 2024
a07fc9a
remove unnecessary instance of RowType/RowDataType judgement
lancelly Dec 8, 2024
8d8fd94
Add check for only single column subquery supported
lancelly Dec 8, 2024
736ed13
merge master
lancelly Dec 8, 2024
b222390
add some ITs and UTs
lancelly Dec 10, 2024
66219cd
fix semi join operator
lancelly Dec 10, 2024
0a5e098
fix semi join operator
lancelly Dec 10, 2024
3ba0391
add check for column num of subquery
lancelly Dec 10, 2024
6fbbf92
remove outdated IT
lancelly Dec 10, 2024
cd7dbed
merge with master
lancelly Dec 16, 2024
95b8520
remove row type related code
lancelly Dec 16, 2024
678bb5e
add IT for null value in source
lancelly Dec 16, 2024
f5d0be8
modify semijoin according to innerjoin && fullouter join
lancelly Dec 16, 2024
879b0ce
remove useless code
lancelly Dec 16, 2024
034e4f3
add optimize rule
lancelly Dec 18, 2024
3e815a4
add some IT
lancelly Dec 18, 2024
3280f84
fix semi join operator with right sort null first
lancelly Dec 18, 2024
cd3e8e3
Merge branch 'support_uncorrelated_in_predicate' into support_uncorre…
lancelly Dec 18, 2024
7ae6f9e
add it for != all with null value
lancelly Dec 18, 2024
2048eec
add some UTs
lancelly Dec 19, 2024
723775b
IT
lancelly Dec 24, 2024
72184a4
merge master
lancelly Dec 27, 2024
4c29860
merge master
lancelly Dec 27, 2024
ae0c4bc
Merge branch 'support_uncorrelated_in_predicate' into support_uncorre…
lancelly Dec 27, 2024
ed4e416
301 -> 701 error code
lancelly Jan 1, 2025
17e667a
Merge branch 'support_uncorrelated_in_predicate' into support_uncorre…
lancelly Jan 1, 2025
8ba2534
merge master
lancelly Jan 1, 2025
e9f76a8
Merge branch 'support_uncorrelated_in_predicate' into support_uncorre…
lancelly Jan 1, 2025
ecf580d
fix it sql
lancelly Jan 1, 2025
395313f
fix it sql
lancelly Jan 1, 2025
17b305e
remove todo and merge master
lancelly Jan 4, 2025
1fc8566
Merge branch 'support_uncorrelated_in_predicate' into support_uncorre…
lancelly Jan 4, 2025
44dab8e
remove todo and merge master
lancelly Jan 4, 2025
981fdb6
fix conflicts
lancelly Jan 10, 2025
fb6c5e5
add AssignUniqueId
lancelly Jan 10, 2025
45f99a7
add leftjoin operator
lancelly Jan 10, 2025
143689a
correct check in pushpredicate
lancelly Jan 10, 2025
dc4cd7b
add correlated agg related rules
lancelly Jan 10, 2025
8beeb0c
add rules and join check
lancelly Jan 12, 2025
87b485e
add tryNormalizeToOuterToInnerJoin
lancelly Jan 13, 2025
231a4f3
merge master
lancelly Jan 17, 2025
56aa492
Merge branch 'support_uncorrelated_quantified_comparison' into suppor…
lancelly Jan 17, 2025
55123de
merge master
lancelly Jan 17, 2025
38a9f22
Merge branch 'support_uncorrelated_quantified_comparison' into suppor…
lancelly Jan 17, 2025
0576557
Merge branch 'master' into support_uncorrelated_quantified_comparison
lancelly Jan 19, 2025
57322c1
Merge branch 'support_uncorrelated_quantified_comparison' into suppor…
lancelly Jan 19, 2025
1d51256
format
lancelly Jan 20, 2025
1e39c65
merge master
lancelly Jan 21, 2025
bb15ece
fix join check
lancelly Jan 21, 2025
2849b0c
add rule in optimizer factory
lancelly Jan 21, 2025
708d1cf
fix visit project
lancelly Jan 22, 2025
fc10331
fix visit project
lancelly Jan 22, 2025
edfba3a
fix visit project
lancelly Jan 22, 2025
d701dea
add IT and fix push into meta filter
lancelly Jan 23, 2025
7e61c55
add Some UTs
lancelly Jan 24, 2025
cd771db
merge master
lancelly Jan 24, 2025
2d04cdf
add Some UTs
lancelly Jan 24, 2025
8403245
fix typo in OperatorGenerator
lancelly Jan 25, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@

import static org.apache.iotdb.db.it.utils.TestUtils.tableAssertTestFail;
import static org.apache.iotdb.db.it.utils.TestUtils.tableResultSetEqualTest;
import static org.apache.iotdb.db.queryengine.plan.relational.planner.optimizations.JoinUtils.FULL_JOIN_ONLY_SUPPORT_EQUI_JOIN;
import static org.apache.iotdb.db.queryengine.plan.relational.planner.optimizations.JoinUtils.ONLY_SUPPORT_EQUI_JOIN;
import static org.junit.Assert.fail;

/** In this IT, table has more than one TAGs and Attributes. */
Expand Down Expand Up @@ -2098,27 +2098,27 @@ public void lastCacheTest() {
public void exceptionTest() {
tableAssertTestFail(
"select * from table0 t0 full join table1 t1 on t0.num>t1.num",
FULL_JOIN_ONLY_SUPPORT_EQUI_JOIN,
ONLY_SUPPORT_EQUI_JOIN,
DATABASE_NAME);

tableAssertTestFail(
"select * from table0 t0 full join table1 t1 on t0.num!=t1.num",
FULL_JOIN_ONLY_SUPPORT_EQUI_JOIN,
ONLY_SUPPORT_EQUI_JOIN,
DATABASE_NAME);

tableAssertTestFail(
"select * from table0 t0 full join table1 t1 on t0.device=t1.device AND t0.num>t1.num",
FULL_JOIN_ONLY_SUPPORT_EQUI_JOIN,
ONLY_SUPPORT_EQUI_JOIN,
DATABASE_NAME);

tableAssertTestFail(
"select * from table0 t0 full join table1 t1 on t0.device=t1.device OR t0.num>t1.num",
FULL_JOIN_ONLY_SUPPORT_EQUI_JOIN,
ONLY_SUPPORT_EQUI_JOIN,
DATABASE_NAME);

tableAssertTestFail(
"select * from table0 t0 full join table1 t1 on t0.device=t1.device OR t0.time=t1.time",
FULL_JOIN_ONLY_SUPPORT_EQUI_JOIN,
ONLY_SUPPORT_EQUI_JOIN,
DATABASE_NAME);
}

Expand Down
Loading
Loading