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

Fix column names for boolean pivot field #184

Merged
merged 1 commit into from
Dec 6, 2022
Merged

Conversation

jonmmease
Copy link
Collaborator

This PR updates the pivot transform to use the names "true" and "false" rather than 1 and 0 for boolean columns.

Previously, we were casting all non-string column values to strings, but casting a boolean to a string in DataFusion results in 0/1 as column names. Now booleans are handled separately to produce "true"/"false" column names.

@jonmmease jonmmease merged commit 2c9c7ec into main Dec 6, 2022
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