File tree Expand file tree Collapse file tree 2 files changed +0
-22
lines changed
main/java/org/opensearch/sql/legacy/antlr/visitor
test/java/org/opensearch/sql/legacy/antlr/visitor Expand file tree Collapse file tree 2 files changed +0
-22
lines changed Original file line number Diff line number Diff line change @@ -290,21 +290,6 @@ public Boolean visitTableSourceBase(TableSourceBaseContext ctx) {
290
290
return !ctx .joinPart ().isEmpty ();
291
291
}
292
292
293
- @ Override
294
- public Boolean visitTableSources (TableSourcesContext ctx ) {
295
- if (ctx .tableSource ().size () > 1 ) {
296
- return true ;
297
- }
298
-
299
- for (int i = 0 ; i < ctx .tableSource ().size (); i ++) {
300
- Boolean hasJoinInTableSource = visit (ctx .tableSource (i ));
301
- if (hasJoinInTableSource != null && hasJoinInTableSource ) {
302
- return true ;
303
- }
304
- }
305
- return false ;
306
- }
307
-
308
293
@ Override
309
294
protected Boolean defaultResult () {
310
295
return false ;
Original file line number Diff line number Diff line change @@ -107,13 +107,6 @@ public void visitFunctionAsAggregatorShouldThrowException() {
107
107
visit ("SELECT max(abs(age)) FROM test" );
108
108
}
109
109
110
- @ Test
111
- public void visitImplicitJoinWithGroupByShouldThrowException () {
112
- exceptionRule .expect (RuntimeException .class );
113
- exceptionRule .expectMessage ("JOIN queries do not support aggregations on the joined result." );
114
- visit ("SELECT COUNT(*) FROM testIndex t1, testIndex t2 WHERE t1.id = t2.id GROUP BY t1.field" );
115
- }
116
-
117
110
@ Test
118
111
public void visitExplicitJoinWithGroupByShouldThrowException () {
119
112
exceptionRule .expect (RuntimeException .class );
You can’t perform that action at this time.
0 commit comments