Skip to content

Commit

Permalink
Fix error msg of Inpredicate
Browse files Browse the repository at this point in the history
  • Loading branch information
lancelly authored Dec 23, 2024
1 parent c059bcc commit 5fe299a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3716,7 +3716,7 @@ public void modeTest() {
public void exceptionTest() {
tableAssertTestFail(
"select s1 from table1 where s2 in (select s2 from table1)",
"Not a valid IR expression",
"Only TableSubquery is supported now",
DATABASE_NAME);
tableAssertTestFail(
"select avg() from table1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1855,7 +1855,8 @@ public Node visitInList(RelationalSqlParser.InListContext ctx) {

@Override
public Node visitInSubquery(RelationalSqlParser.InSubqueryContext ctx) {
Expression result =
throw new SemanticException("Only TableSubquery is supported now");
/*Expression result =
new InPredicate(
getLocation(ctx),
(Expression) visit(ctx.value),
Expand All @@ -1865,7 +1866,7 @@ public Node visitInSubquery(RelationalSqlParser.InSubqueryContext ctx) {
result = new NotExpression(getLocation(ctx), result);
}
return result;
return result;*/
}

@Override
Expand Down

0 comments on commit 5fe299a

Please sign in to comment.