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

Drop JSON null values on streams #428

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

turb
Copy link

@turb turb commented Jan 2, 2025

When sending data with loadJson, empty Option properties are sent as JSON null. While BigQuery then stores it as a column null for almost all column types, it is not the case with JSON column types.

For example:

  • load with None => stored as JSON null (not column null)
  • pull => returns Some(null)

The change is simple: just remove the null JSON properties so that BigQuery always stores a DB null, even with the JSON column type.

@turb
Copy link
Author

turb commented Jan 7, 2025

Hello @mariuene @TSommerdal, do you think it would be possible to review / merge / release this?

Many thanks!

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