4paradigm / 4paradigm/OpenMLDB

java sdk: error is not understandable if getInsertPreparedStatement (and other functions)'s arg is null

Open
#1,538 1 comment 0 reactions 1 assignee Assigned to @vagetablechicken View on GitHub
bug community java sdk
Dominant language
C++
Stars
1.7k
Forks
331
Avg merge
12d 12h
Merged PRs (30d)
1

Description

It will failed on `GetInsertRow`
![image](https://user-images.githubusercontent.com/24697960/160769494-c7f8b9a8-e361-4fd1-9577-67394bea0525.png)

Hard to understand.

Contributor guide

Open the contributing guide

Research direction

Look at the Java SDK code, specifically the `getInsertPreparedStatement` function and related methods that call `GetInsertRow`. The error occurs when an argument is null. Find where the null check is missing and add proper validation or error messaging. Test by passing null to the function and verifying the error is clear.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend, databases
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.