vesoft-inc / nebula

A distributed, fast open-source graph database featuring horizontal scalability and high availability
https://nebula-graph.io
Apache License 2.0
10.83k stars 1.2k forks source link

test_single_match fails #4425

Closed xtcyclist closed 2 years ago

xtcyclist commented 2 years ago

Please check the FAQ documentation before raising an issue

Describe the bug (required)

_________________________________________________________________________________________________________________________________ test_single_match _________________________________________________________________________________________________________________________________
[gw2] linux -- Python 3.8.10 /usr/bin/python3
../../../.local/lib/python3.8/site-packages/pytest_bdd/scenario.py:177: in scenario_wrapper
    _execute_scenario(feature, scenario, request, encoding)
../../../.local/lib/python3.8/site-packages/pytest_bdd/scenario.py:143: in _execute_scenario
    _execute_step_function(request, scenario, step, step_func)
../../../.local/lib/python3.8/site-packages/pytest_bdd/scenario.py:113: in _execute_step_function
    return_value = step_func(**kwargs)
tck/conftest.py:785: in check_plan
    assert differ.diff(), differ.err_msg()
E   AssertionError: Invalid descriptions, expect: {"props": [{"tagId": 9, "props": ["name", "age", "_tag"]}, {"props": ["name", "speciality", "_tag"], "tagId": 8}, {"tagId": 10, "props": ["name", "_tag"]}]} vs. resp: {"inputVar": "__Traverse_3", "space": "2", "dedup": "true", "limit": "-1", "filter": "", "orderBy": "[]", "src": "none_direct_dst($-.e)", "props": "[{\"props\":[\"name\",\"speciality\",\"_tag\"],\"tagId\":8},{\"props\":[\"name\",\"age\",\"_tag\"],\"tagId\":9},{\"props\":[\"name\",\"_tag\"],\"tagId\":10}]", "exprs": "", "vertex_filter": "", "if_track_previous_path": "true"}
E   assert False
E    +  where False = <bound method PlanDiffer.diff of <tests.common.plan_differ.PlanDiffer object at 0x7fb4b6aba280>>()
E    +    where <bound method PlanDiffer.diff of <tests.common.plan_differ.PlanDiffer object at 0x7fb4b6aba280>> = <tests.common.plan_differ.PlanDiffer object at 0x7fb4b6aba280>.diff
------------------------------------------------------------------------------------------------------------------------------- Captured stdout call --------------------------------------------------------------------------------------------------------------------------------
{'inputVar': '__Traverse_3', 'space': 2, 'dedup': True, 'limit': -1, 'filter': '', 'orderBy': [], 'src': 'none_direct_dst($-.e)', 'props': [{'props': ['age'], 'tagId': 9}], 'exprs': '', 'vertex_filter': '', 'if_track_previous_path': True}
{'props': [{'props': ['age'], 'tagId': 9}]}
{'inputVar': '__Traverse_3', 'space': 2, 'dedup': True, 'limit': -1, 'filter': '', 'orderBy': [], 'src': 'none_direct_dst($-.e)', 'props': [{'props': ['age'], 'tagId': 9}], 'exprs': '', 'vertex_filter': '', 'if_track_previous_path': True}
{}
{'inputVar': '__IndexScan_1', 'space': 2, 'dedup': True, 'limit': -1, 'filter': '', 'orderBy': [], 'src': '$_vid', 'edgeTypes': [], 'edgeDirection': 'OUT_EDGE', 'vertexProps': '', 'edgeProps': [{'props': ['_dst', '_rank', '_type', '_src'], 'type': 3}], 'statProps': '', 'exprs': '', 'random': False, 'steps': '', 'vertex filter': '', 'edge filter': '', 'if_track_previous_path': False, 'first step filter': '(player.name=="Tony Parker")'}
{'vertexProps': '', 'edgeProps': [{'props': ['_dst', '_rank', '_type', '_src'], 'type': 3}]}
{'inputVar': '__IndexScan_1', 'space': 2, 'dedup': True, 'limit': -1, 'filter': '', 'orderBy': [], 'src': '$_vid', 'edgeTypes': [], 'edgeDirection': 'OUT_EDGE', 'vertexProps': '', 'edgeProps': [{'props': ['_dst', '_rank', '_type', '_src'], 'type': 3}], 'statProps': '', 'exprs': '', 'random': False, 'steps': '', 'vertex filter': '', 'edge filter': '', 'if_track_previous_path': False, 'first step filter': '(player.name=="Tony Parker")'}
{}
{'inputVar': '__Traverse_3', 'space': 2, 'dedup': True, 'limit': -1, 'filter': '', 'orderBy': [], 'src': 'none_direct_dst($-.e)', 'props': [{'props': ['name', 'speciality', '_tag'], 'tagId': 8}, {'props': ['name', 'age', '_tag'], 'tagId': 9}, {'props': ['name', '_tag'], 'tagId': 10}], 'exprs': '', 'vertex_filter': '', 'if_track_previous_path': True}
{'props': [{'tagId': 9, 'props': ['name', 'age', '_tag']}, {'props': ['name', 'speciality', '_tag'], 'tagId': 8}, {'tagId': 10, 'props': ['name', '_tag']}]}
{'inputVar': '__Traverse_3', 'space': 2, 'dedup': True, 'limit': -1, 'filter': '', 'orderBy': [], 'src': 'none_direct_dst($-.e)', 'props': [{'tagId': 9, 'props': ['name', 'age', '_tag']}, {'props': ['name', 'speciality', '_tag'], 'tagId': 8}, {'tagId': 10, 'props': ['name', '_tag']}], 'exprs': '', 'vertex_filter': '', 'if_track_previous_path': True}
{'values_changed': {"root['props'][0]['tagId']": {'new_value': 9, 'old_value': 8}, "root['props'][0]['props'][1]": {'new_value': 'age', 'old_value': 'speciality'}, "root['props'][1]['props'][1]": {'new_value': 'speciality', 'old_value': 'age'}, "root['props'][1]['tagId']": {'new_value': 8, 'old_value': 9}}}

Your Environments (required)

How To Reproduce(required)

Steps to reproduce the behavior:

  1. Step 1
  2. Step 2
  3. Step 3

Expected behavior

Additional context

xtcyclist commented 2 years ago

There is no real bug. It's just that tagId shall be listed from the smallest in the ascending order in the .feature file.