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

[MINOR]: Fix stack overflow bug for get field access expr #7623

Merged
merged 1 commit into from
Sep 22, 2023
Merged

[MINOR]: Fix stack overflow bug for get field access expr #7623

merged 1 commit into from
Sep 22, 2023

Conversation

mustafasrepo
Copy link
Contributor

@mustafasrepo mustafasrepo commented Sep 22, 2023

Which issue does this PR close?

Closes #7621.

Rationale for this change

There is a bug that causes stack overflow when .eq method ofGetFieldAccessExpr is called. This PR fixes this problem

What changes are included in this PR?

Are these changes tested?

Yes a new test is added to demonstrate equality works as expected

Are there any user-facing changes?

@mustafasrepo mustafasrepo changed the title Add test case, and fix stack overflow bug for get field access expr [MINOR]: Add test case, and fix stack overflow bug for get field access expr Sep 22, 2023
@github-actions github-actions bot added the physical-expr Changes to the physical-expr crates label Sep 22, 2023
@mustafasrepo mustafasrepo changed the title [MINOR]: Add test case, and fix stack overflow bug for get field access expr [MINOR]: Fix stack overflow bug for get field access expr Sep 22, 2023
Copy link
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice fix -- thank you @mustafasrepo

@alamb alamb merged commit 9fa0207 into apache:main Sep 22, 2023
Ted-Jiang pushed a commit to Ted-Jiang/arrow-datafusion that referenced this pull request Oct 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
physical-expr Changes to the physical-expr crates
Projects
None yet
Development

Successfully merging this pull request may close these issues.

GetIndexedFieldExpr dyn_eq implementation causes stack overflow
2 participants