Repository navigation
Conversation
TriageCategory: Summary What this impacts
Concerns
Required reviewer action
|
|
Docs drift check: this PR looks like it needs doc updates.
|
AI review gate — Cursor Bugbot found issues
Unresolved findings (1): What to do:
Re-run the gate with “Re-run jobs” after an approval or a finished review. A push re-runs it automatically. |
Client V2 CoverageCoverage Report
Class Coverage
|
JDBC V2 CoverageCoverage Report
Class Coverage
|
…am API in Java client
246ecec to
7c2e14d
Compare
|
@cursor review |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit e11531f. Configure here.
| long ab = Double.doubleToRawLongBits(ad); | ||
| if ((eb < 0) != (ab < 0) || Math.abs(eb - ab) > 1L) { | ||
| return false; | ||
| } |
There was a problem hiding this comment.
Float tolerance misses underflow
Medium Severity
columnMatchesWithinOneUlp accepts only values whose raw bits differ by one, and it rejects a sign change. On servers before 26.8, subnormal Float64 literals flush to zero, which is much more than one ULP except for the smallest value, and a negative subnormal rendered as 0 fails the sign check. The catalog and multi-column assertions still fail for those rows.
Additional Locations (1)
Reviewed by Cursor Bugbot for commit e11531f. Configure here.


Summary
PR optimizes the way we use in JDBC to send SQL when RowBinary cannot be used (function used in the expression or another expression that should be done on server). This change creates a new implementation class that substitutes old one by default but user can opt out by setting the configuration flag
Closes #3523
Checklist
Delete items not relevant to your PR:
Note
Medium Risk
Default JDBC prepared-statement implementation changed to streaming SQL assembly; behavior should match the legacy string path but affects all parameterized queries and large inserts unless disabled.
Overview
Adds streaming SQL execution so large request bodies never need a single in-memory
String. client-v2 exposesClient#queryStream(...)and factors shared retry/metrics logic intoqueryInternal, writing the HTTP body throughDataStreamWriter(includingonRetry()between attempts).jdbc-v2 makes streaming prepared statements the default (
jdbc_streaming_prepared_statement=true, opt out withfalse).Connection#prepareStatementreturnsStreamingPreparedStatementImplwhen RowBinaryWriterStatementImplis not chosen. That implementation binds parameters viaFastSqlBatchWriter/SqlParameterBinder, streams UTF-8 SQL throughClient.queryStream, and batches multi-rowINSERT ... VALUESwith 64 KB chunks instead ofStringBuilderassembly.PreparedStatementImplis refactored with protected hooks for the subclass.Documentation, changelog, unit/integration tests, and JMH benchmarks (
jqp,jis,FastSqlBatchWriterBenchmark) cover the new paths.Reviewed by Cursor Bugbot for commit e11531f. Bugbot is set up for automated code reviews on this repo. Configure here.