这是indexloc提供的服务,不要输入任何密码
Skip to content

fix selecting nested field with name that begins with dollar sign #108

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

Conversation

hallettj
Copy link
Collaborator

This PR updates the logic for building selection documents for the $replaceWith pipeline stage to be more rigorous. It uses an expanded ColumnRef enum to keep track of whether the selected reference has a name that needs to be escaped, is a variable, etc.

@hallettj hallettj self-assigned this Sep 27, 2024
// {
// parent_columns.iter().copied().chain(Some(column)).collect()
// }

Copy link
Collaborator

Choose a reason for hiding this comment

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

Did you leave this intentionally or can it be cleaned up?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Thanks for catching that - I removed it

@hallettj hallettj merged commit 8ab0ab2 into main Sep 27, 2024
1 check passed
@hallettj hallettj deleted the jessehallett/eng-1129-mongodb-selecting-nested-field-with-dollar-sign-in-name branch September 27, 2024 18:48
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.

2 participants