Skip to content

Fix issue #878 - unrecognized node type error#889

Merged
jrgemignani merged 1 commit into
apache:masterfrom
MuhammadTahaNaveed:issue_874
May 3, 2023
Merged

Fix issue #878 - unrecognized node type error#889
jrgemignani merged 1 commit into
apache:masterfrom
MuhammadTahaNaveed:issue_874

Conversation

@MuhammadTahaNaveed

@MuhammadTahaNaveed MuhammadTahaNaveed commented May 3, 2023

Copy link
Copy Markdown
Member
  • The error was in the way expr was getting transformed in case of T_NullTest.
  • The original expr was also getting tranformed, causing the nodeType of that expr unrecognizable next time the expr is used.
  • Fixed by creating a new NullTest expr.
  • Added regression tests as well.

resolves #878

- The error was in the way expr was getting transformed in case of
  T_NullTest.
- The original expr was also getting tranformed, causing the nodeType
  of that expr unrecognizable next time the expr is used.
- Fixed by creating a new NullTest expr.
- Added regression tests as well.
@jrgemignani

Copy link
Copy Markdown
Contributor

@MuhammadTahaNaveed Added a question, otherwise it looks good.

@MuhammadTahaNaveed

Copy link
Copy Markdown
Member Author

@jrgemignani where? I could not see it.

@jrgemignani

Copy link
Copy Markdown
Contributor

@MuhammadTahaNaveed
image

@MuhammadTahaNaveed

MuhammadTahaNaveed commented May 3, 2023

Copy link
Copy Markdown
Member Author

Thats odd.. I dont know why i cant see it. nvm.

If we see how other expr types are tranformed, it does not modify the original expr. I think adding a check to see if it was previously tranformed would be an aid rather than solving the main issue.

Comment thread src/backend/parser/cypher_expr.c
@jrgemignani jrgemignani merged commit a485844 into apache:master May 3, 2023
@MuhammadTahaNaveed MuhammadTahaNaveed deleted the issue_874 branch May 4, 2023 16:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unexpected Error: unrecognized node type: 107

2 participants