Skip to content

Commit

Permalink
test: fixed broken test
Browse files Browse the repository at this point in the history
  • Loading branch information
lvca committed Sep 30, 2023
1 parent 9f4f0ff commit 8c960cb
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,11 @@ public CreateEdgeExecutionPlanner(final CreateEdgeStatement statement) {
this.ifNotExists = statement.ifNotExists();
this.body = statement.getBody() == null ? null : statement.getBody().copy();

final JsonArray jsonArray = statement.getBody().getJsonArrayContent();
if (jsonArray != null && jsonArray.items.size() != 1)
throw new CommandSQLParsingException("Expected one entry in the json array as content");
if (statement.getBody() != null) {
final JsonArray jsonArray = statement.getBody().getJsonArrayContent();
if (jsonArray != null && jsonArray.items.size() != 1)
throw new CommandSQLParsingException("Expected one entry in the json array as content");
}
}

public InsertExecutionPlan createExecutionPlan(final CommandContext context, final boolean enableProfiling) {
Expand Down

0 comments on commit 8c960cb

Please sign in to comment.