Skip to content

Support Not ArrayOverlaps #549

Description

@pietermartin

Looks at adding native postgresql support for not ArrayOverlap queries.

SqlgGraph sqlgGraph = GraphUtil.getSqlgGraph(DATABASE.CM);
        Vertex aVertex = sqlgGraph.addVertex(T.label, "A", "name", new String[]{"1", "2", "3", "4", "5"});
        aVertex = sqlgGraph.addVertex(T.label, "A", "name", new String[]{"7", "8", "9"});
        sqlgGraph.tx().commit();
        List<Vertex> vertices = sqlgGraph.traversal().V().hasLabel("A")
                .not(__.has("name", new ArrayOverlaps<>(new String[]{"4","5"}).getPredicate()))
                .toList();
        Assert.assertEquals(1, vertices. Size());

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions