GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [BUG] Merged query using operator MATCH returns false results · Issue #942 · ArcadeData/arcadedb

[BUG] Merged query using operator MATCH returns false results #942

New issue
Copy link
New issue
Copy link
Closed
Closed
[BUG] Merged query using operator MATCH returns false results#942
Copy link
Assignees
lvca
Labels
questionFurther information is requested
Milestone
23.5.1

Description

@llooFlashooll
llooFlashooll
opened on Mar 16, 2023
Issue body actions

We discovered a bug that Merged query using operator MATCH returns false results.

  • ArcadeDB Version: 22.12.1
  • Operating system: macOS 13.2.1
  • JDK Version: 11
  • API/Driver: Java

Expected behavior:

We construct the following scenario: we randomly generate two queries Q1, Q2, and merge these two queries using MATCH operator into a new query Q3. Based on the intersection calculation. The Q3 query result set should be the intersection of result sets from Q1 and Q2. We generate the intersection queries based on the reference here: https://stackoverflow.com/questions/48067834/gremlin-intersection-operation. This also a correction of syntax of the #928.
We generate graph schema and data based on random strings and values. Here is one of our examples that triggered the bug.

  1. g.V().has('vp0') returns [#41:199, #44:199, #47:198, #59:195, #62:194, #65:244, #68:244, #83:239, #86:239]
  2. g.V().in('el1').has('vp2') returns [#62:194]
  3. g.V().match(__.as('a').has('vp0'),__.as('a').in('el1').has('vp2')).select('a') returns [#83:239].

We calculate the intersection result set of Q1 and Q2, which is [#62:194].
The intersection result set doesn't equal to Q3 result set.

Actual behavior:

The intersection result set should equal to Q3 result set. We did trigger some cases conform to this requirement, but still there're some cases that violate this constraint.

Steps to reproduce:

We create a graph with 10 nodes and 20 edges. We try to make it clear to reproduce the bugs, hope to not cause much inconvenience to your reviewing, but we believe the problem does exist.
Following the following graph data generation query, we can reproduce the bugs:

  • Create data
Vertex:
g.addV('vl1').property('vp0','-4326052370286823505').property('vp2','4748443017597012372').property(T.id,#83:239)
g.addV('vl2').property('vp0','-4462472793860383914').property('vp2','3161320056528493163').property(T.id,#59:195)
g.addV('vl1').property('vp0','8798413568155499492').property('vp2','3914684363611490906').property(T.id,#86:239)
g.addV('vl2').property('vp0','8502107583557457183').property('vp2','2586947228952672147').property(T.id,#62:194)
g.addV('vl1').property('vp0','8637981445770599750').property('vp2','6898848238312254540').property(T.id,#65:244)
g.addV('vl2').property('vp0','991762968980711929').property(T.id,#41:199)
g.addV('vl1').property('vp0','-438840506284917553').property('vp2','-364801651085403299').property(T.id,#68:244)
g.addV('vl0').property('vp2','-4053975336427718699').property(T.id,#161:280)
g.addV('vl2').property('vp0','6381142979155028868').property('vp2','-6854451934581924799').property(T.id,#44:199)
g.addV('vl2').property('vp0','-2994676344083264213').property('vp2','7527951846231647692').property(T.id,#47:198)

Edge:
g.V(#65:244).as('#65:244').V(#86:239).as('#86:239').addE('el0').from('#65:244').to('#86:239')
g.V(#62:194).as('#62:194').V(#161:280).as('#161:280').addE('el2').from('#62:194').to('#161:280')
g.V(#83:239).as('#83:239').V(#62:194).as('#62:194').addE('el1').from('#83:239').to('#62:194')
g.V(#41:199).as('#41:199').V(#62:194).as('#62:194').addE('el3').from('#41:199').to('#62:194')
g.V(#65:244).as('#65:244').V(#41:199).as('#41:199').addE('el1').from('#65:244').to('#41:199')
g.V(#47:198).as('#47:198').V(#62:194).as('#62:194').addE('el3').from('#47:198').to('#62:194')
g.V(#68:244).as('#68:244').V(#41:199).as('#41:199').addE('el1').from('#68:244').to('#41:199')
g.V(#44:199).as('#44:199').V(#161:280).as('#161:280').addE('el2').from('#44:199').to('#161:280')
g.V(#47:198).as('#47:198').V(#161:280).as('#161:280').addE('el2').from('#47:198').to('#161:280')
g.V(#41:199).as('#41:199').V(#161:280).as('#161:280').addE('el2').from('#41:199').to('#161:280')
g.V(#59:195).as('#59:195').V(#161:280).as('#161:280').addE('el2').from('#59:195').to('#161:280')
g.V(#83:239).as('#83:239').V(#68:244).as('#68:244').addE('el0').from('#83:239').to('#68:244')
g.V(#68:244).as('#68:244').V(#83:239).as('#83:239').addE('el0').from('#68:244').to('#83:239')
g.V(#44:199).as('#44:199').V(#62:194).as('#62:194').addE('el3').from('#44:199').to('#62:194')
g.V(#44:199).as('#44:199').V(#41:199).as('#41:199').addE('el3').from('#44:199').to('#41:199')
g.V(#41:199).as('#41:199').V(#47:198).as('#47:198').addE('el3').from('#41:199').to('#47:198')
g.V(#86:239).as('#86:239').V(#41:199).as('#41:199').addE('el1').from('#86:239').to('#41:199')
g.V(#68:244).as('#68:244').V(#68:244).as('#68:244').addE('el0').from('#68:244').to('#68:244')
g.V(#65:244).as('#65:244').V(#65:244).as('#65:244').addE('el0').from('#65:244').to('#65:244')
g.V(#62:194).as('#62:194').V(#44:199).as('#44:199').addE('el3').from('#62:194').to('#44:199')

Activity

  1. lvca commented on Mar 16, 2023

    @lvca
    lvca
    on Mar 16, 2023
    Member
    More actions

    @llooFlashooll For this operation ArcadeDB uses the standard Gremlin library, there isn't much ArcadeDB but just Gremlin. Did you already try the same with TinkerGraph?

  2. llooFlashooll commented on Mar 16, 2023

    @llooFlashooll
    llooFlashooll
    on Mar 16, 2023
    Author
    More actions

    I see. I'll further confirm it with TinkerGraph, then report back to you.

  3. lvca
    self-assigned this
    on Mar 16, 2023
  4. lvca
    added
    questionFurther information is requested
    on Mar 16, 2023
  5. lvca
    added this to the 23.3.1 milestone on Mar 16, 2023
  6. lvca
    modified the milestones: 23.3.1, 23.4.1 on Apr 5, 2023
  7. lvca
    modified the milestones: 23.4.1, 23.5.1 on May 2, 2023
  8. lvca commented on Jun 9, 2023

    @lvca
    lvca
    on Jun 9, 2023
    Member
    More actions

    Any news on this? Closing this issue as resolved. In case please comment here to be reopened.

  9. lvca
    closed this as completedon Jun 9, 2023
  10. mergify
    added a commit that references this issue on Jun 29, 2026

    chore(deps): update testcontainers requirement from >=4.13.3 to >=4.1…

    52443b6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @lvca
    lvca

Labels

questionFurther information is requested

Type

No type

Projects

No projects

    Milestone

    • 23.5.1

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.