Skip to content

feat!: rename query/queryWithParams to sql/sqlWithParams; query becomes async - #58

Merged
krinart merged 7 commits into
trunkfrom
docs/v0.8.0-active-async-queries
Aug 22, 2026
Merged

feat!: rename query/queryWithParams to sql/sqlWithParams; query becomes async#58
krinart merged 7 commits into
trunkfrom
docs/v0.8.0-active-async-queries

Conversation

@krinart

@krinart krinart commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

Summary

#53 (listActiveQueries/cancelActiveQuery) has merged to trunk since
v0.8.0's release notes were first written, and #56 (queryAsync/
queryAsyncWithParams) is expected to merge before release. Both are
purely additive, so the compatibility statement is unchanged.
Copilot AI balanced review requested due to automatic review settings August 21, 2026 21:57

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Updates v0.8.0 release notes for active and asynchronous query APIs.

Changes:

  • Documents active-query listing and cancellation.
  • Documents asynchronous query submission and result handling.
  • Updates compatibility wording.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread docs/release_notes/v0.8.0.md Outdated
Added documentation for asynchronous query execution and active query management features.
Copilot AI review requested due to automatic review settings August 21, 2026 23:09

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.

Suppressed comments (1)

docs/release_notes/v0.8.0.md:66

  • “Public API unchanged” contradicts the same sentence’s statement that new public methods were added. The compatibility guarantee here is that the change is additive/backward-compatible, not that the API is unchanged.
- Public API unchanged: every feature in this release is a new method; nothing existing was renamed, removed, or retyped.

Comment thread docs/release_notes/v0.8.0.md Outdated
- Move the AsyncQuery-handle paragraph (status/waitForCompletion/cancel)
  back under Async Queries; it was left stranded under Active Query
  Management by a later reordering of the two sections.
- Reword "Public API unchanged" to "Additive, backward-compatible
  change" -- new public methods were added, so the API did change,
  just without breaking anything existing.
Copilot AI review requested due to automatic review settings August 21, 2026 23:20

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

…becomes query

Matches the breaking-rename pattern already shipped in the dotnet, js,
and python SDKs: query()/queryWithParams() now submit SQL for
asynchronous execution and return an AsyncQuery handle, and the
previous synchronous, streaming behavior moves to new sql()/
sqlWithParams() methods.

- SpiceClient.query(String) -> SpiceClient.sql(String)
- SpiceClient.queryWithParams(String, Object...) -> SpiceClient.sqlWithParams(String, Object...)
- SpiceClient.queryAsync(String) -> SpiceClient.query(String)
- SpiceClient.queryAsyncWithParams(String, Object...) -> SpiceClient.queryWithParams(String, Object...)

Updates every call site and cross-reference in src/main, src/test,
README.md, and docs/parameterized_queries.md. Historical release notes
(v0.5.0.md, v0.6.0.md) are left untouched since they accurately
document what those versions actually shipped at the time.

Full test suite passes unchanged in behavior -- this is a pure rename,
no logic changes.
Replaces the "Additive, backward-compatible change" compatibility
statement, which the rename in the previous commit made false, with an
actual Breaking Changes section describing it: query()/queryWithParams()
now submit for asynchronous execution and return an AsyncQuery handle;
the previous synchronous, streaming behavior moved to sql()/
sqlWithParams(). Also fixes two now-stale sync-path cross-references
(Nsql and Async Queries sections) that still said query()/
queryWithParams() where they meant the new sql()/sqlWithParams().
Copilot AI review requested due to automatic review settings August 21, 2026 23:44

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 25 out of 25 changed files in this pull request and generated 1 comment.

Comment thread src/main/java/ai/spice/SpiceClient.java
The gate correctly caught the intentional breaking change: query()'s
return type changed from FlightStream to AsyncQuery, and
queryWithParams()'s from ArrowReader to AsyncQuery, since both now
submit for asynchronous execution instead of streaming results
directly. Documented, scoped exclusions for exactly these two methods
keep the gate meaningful for catching any other, unintended breaking
change in this or a future release.

Verified locally with the exact CI command (mvn checkstyle:check
japicmp:cmp) -- BUILD SUCCESS, and the generated report confirms
SpiceClient is otherwise fully binary- and source-compatible with the
published 0.7.0.
Copilot AI review requested due to automatic review settings August 22, 2026 00:04

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 26 out of 26 changed files in this pull request and generated 1 comment.

Comment thread pom.xml
@krinart krinart self-assigned this Aug 22, 2026
@krinart krinart changed the title docs: update v0.8.0 release notes for active queries and async queries feat!: rename query/queryWithParams to sql/sqlWithParams; query becomes async Aug 22, 2026
@krinart
krinart merged commit 215eae2 into trunk Aug 22, 2026
21 checks passed
@krinart
krinart deleted the docs/v0.8.0-active-async-queries branch August 22, 2026 00:29
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.

3 participants