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

Handle special characters in projection pushdown #236

Merged
merged 5 commits into from
Jan 30, 2023

Conversation

jonmmease
Copy link
Collaborator

This PR adds a previously failing test in e7e8d2a. The issue is that projection pushdown was creating a transform that looked like this:

{
  "type": "project",
  "fields": ["pe.riod", "pe\\.riod"]
}

The resulting error was:

Projections require unique expression names but the expression \"tbl_1.pe.riods\" at position 1 and \"tbl_1.pe.riods\" at position 2 have the same name

To fix the issue, 81f5aef updates the transform_columns transform spec implementations to unescape fields before including them in ColumnUsage sets.

4794951 updates the (un)escape logic to handle periods and brackets.

Error was: Projections require unique expression names but the expression \"tbl_1.pe.riods\" at position 1 and \"tbl_1.pe.riods\" at position 2 have the same name
@jonmmease
Copy link
Collaborator Author

Waiting on clippy formatting updates from #237

@jonmmease jonmmease merged commit fc08f22 into main Jan 30, 2023
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.

1 participant