Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

About the design of Predicate in EdgeExpand #3734

Open
zhanglei1949 opened this issue Apr 22, 2024 · 1 comment
Open

About the design of Predicate in EdgeExpand #3734

zhanglei1949 opened this issue Apr 22, 2024 · 1 comment
Assignees
Labels

Comments

@zhanglei1949
Copy link
Collaborator

In EdgeExpand, a predicate can possibly be given to filter unexpected results.

{
    "opr": {
        "edge": {
            "direction": "OUT",
            "params": {
                "tables": [
                    {
                        "id": 10
                    }
                ],
                "columns": [
                    {
                        "name": "workFrom"
                    }
                ],
                "isAllColumns": false,
                "predicate": {
                    "operators": [
                        {
                            "var": {
                                "property": {
                                    "key": {
                                        "name": "workFrom"
                                    }
                                },
                                "nodeType": {
                                    "dataType": "INT32"
                                }
                            },
                            "nodeType": {
                                "dataType": "INT32"
                            }
                        },
                        {
                            "nodeType": {
                                "dataType": "BOOLEAN"
                            },
                            "logical": "LT"
                        },
                        {
                            "param": {
                                "name": "workFromYear",
                                "index": 2,
                                "dataType": {
                                    "dataType": "INT32"
                                }
                            },
                            "nodeType": {
                                "dataType": "INT32"
                            }
                        }
                    ]
                },
                "sampleRatio": 1,
                "extra": {}
            },
            "expandOpt": "EDGE",
            "isOptional": false,
            "vTag": 1,
            "alias": 2
        }
    }
}

The may be confusing point about this predicate:

The tag of the Variable is not given, so should I use the current visiting edge or the previous visited HEAD?

Copy link
Contributor

/cc @zhanglei1949 @BingqingLyu, this issus/pr has had no activity for for a long time, could you folks help to review the status ?
To suppress further notifications,

  • for issues,
    • if it is waiting for further response from the reporter/author, please help to add the label requires-further-info,
    • if you have already started working on it, please add the label work-in-progress to the issue,
    • if this issue requires further designing discussion and not in current plan, or won't be fixed, please add the label requires-further-discussion or wontfix to the issue,
  • for pull requests,
    • if you are still working on it and it is not ready for reviewing, please convert this pull request as draft PR,
    • if you have decided to hold this development on, please add the requires-further-discussion label to the pull request.
      Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants