Skip to content

AttributeError: 'OC_NotExpressionContext' object has no attribute 'OR' #13

Description

@Vic-GoodLuck

For some corpus templates, the following error occurred when attempting to generate queries:

File "Awesome-Text2GQL/base/TransVisitor.py", line 934, in visitOC_OrExpression
if ctx.OR():
AttributeError: 'OC_NotExpressionContext' object has no attribute 'OR'

Is this an error in my corpus template setting or in the code of Awesome-Text2GQL?

Activity

  1. Panghy1106 commented on Oct 29, 2024

    @Panghy1106
    Contributor

    Could you please offer your templates.

    It seems so weird to meet the error.

  2. scottykma commented on Nov 9, 2024

    @scottykma

    Could you please offer your templates.

    It seems so weird to meet the error.

    I met a similar problem showed as 'OC_XorExpressionContext' object has no attribute 'OR'. It seems to appear very frequently. Here is an example:

    MATCH (a) WHERE a.name >= 'Peter' RETURN a.name, a.born
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions