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: Dump properties with multi byte characters #18690

Merged
merged 1 commit into from
Nov 16, 2023

Conversation

tomasfarias
Copy link
Contributor

Problem

The problem was not exactly whitespace, but multi-byte characters produced by json.dumps. Redshift can handle multi-byte, so just pass them as is by setting ensure_ascii=False.

Changes

👉 Stay up-to-date with PostHog coding conventions for a smoother review.

How did you test this code?

Unit tests + real test.

@tomasfarias tomasfarias marked this pull request as ready for review November 16, 2023 18:20
@tomasfarias tomasfarias enabled auto-merge (squash) November 16, 2023 18:20
Copy link
Contributor

Size Change: 0 B

Total Size: 2.01 MB

ℹ️ View Unchanged
Filename Size
frontend/dist/toolbar.js 2.01 MB

compressed-size-action

@tomasfarias tomasfarias merged commit 6c16a42 into master Nov 16, 2023
70 checks passed
@tomasfarias tomasfarias deleted the fix/redshift-batch-export-dump-multi-byte-chars branch November 16, 2023 18:34
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