Skip to content

fix(bigquery-jdbc): handle null parameters in Storage Write API bulk inserts - #14270

Open
Neenu1995 wants to merge 3 commits into
mainfrom
fix-npe-bulk-write
Open

fix(bigquery-jdbc): handle null parameters in Storage Write API bulk inserts#14270
Neenu1995 wants to merge 3 commits into
mainfrom
fix-npe-bulk-write

Conversation

@Neenu1995

@Neenu1995 Neenu1995 commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Fixes #14066

@Neenu1995
Neenu1995 requested review from a team as code owners September 4, 2026 17:51

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request refactors JSON row creation in BigQueryPreparedStatement into a static helper method createJsonRow and adds support for handling null parameter values by mapping them to JsonNull.INSTANCE for the Storage Write API. It also includes corresponding unit and integration tests to verify batch inserts with null values. The reviewer suggested using the interface type List instead of the concrete implementation ArrayList in the signature of the new createJsonRow method to improve flexibility.

…c/BigQueryPreparedStatement.java

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
@lqiu96 lqiu96 added the release-please:force-run To run release-please label Sep 4, 2026
@release-please release-please Bot removed the release-please:force-run To run release-please label Sep 4, 2026
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.

bigquery-jdbc: Storage Write batch throws NPE for setObject(index, null)

2 participants