Skip to content

Commit

Permalink
test: add test to verify let variable serialization In remote, issue …
Browse files Browse the repository at this point in the history
…10004
  • Loading branch information
tglman committed Aug 10, 2023
1 parent 950d682 commit 6f18ab2
Showing 1 changed file with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,21 @@ public void testScriptWithRidbags() {
rs.close();
}

@Test
public void testLetOut() {
session.command("create class letVertex extends V");
session.command("create class letEdge extends E");
session.command("create vertex letVertex set name = 'a'");
session.command("create vertex letVertex set name = 'b'");
session.command(
"create edge letEdge from (select from letVertex where name = 'a') TO (select from letVertex where name = 'b');");

OResultSet rs =
session.query(
"select $someNode.in('letEdge') from letVertex LET $someNode =out('letEdge');");
assertEquals(rs.stream().count(), 2);
}

@After
public void after() {
QUERY_REMOTE_RESULTSET_PAGE_SIZE.setValue(oldPageSize);
Expand Down

0 comments on commit 6f18ab2

Please sign in to comment.