Skip to content
Snippets Groups Projects
  • Fabien Amarger's avatar
    187b16da296d
    fix: Compare node class if subclassof · 187b16da296d
    Fabien Amarger authored
    When the nodes.VariableRefAttributeAccess and nodes.VariableRefMethodCall were added, the
    node comparison function were broken since the class instances are not the same.
    This is a problem when using the groupby and an attribute access or method call on projection
    variable.
    For example:
    Any X, S.download_url() GROUPBY X,S WHERE X is ImportProcess, X shacl_report S
    
    were a bad rql query since `S.download_url()` is not the same node (not the same class) as `S`.
    But actually it is.
    
    This patch allow this syntax
    187b16da296d
    History
    fix: Compare node class if subclassof
    Fabien Amarger authored
    When the nodes.VariableRefAttributeAccess and nodes.VariableRefMethodCall were added, the
    node comparison function were broken since the class instances are not the same.
    This is a problem when using the groupby and an attribute access or method call on projection
    variable.
    For example:
    Any X, S.download_url() GROUPBY X,S WHERE X is ImportProcess, X shacl_report S
    
    were a bad rql query since `S.download_url()` is not the same node (not the same class) as `S`.
    But actually it is.
    
    This patch allow this syntax