Repository navigation
Add HTTP offline query submission and status APIs - #220
Merged
Merged
Conversation
stsingh
marked this pull request as ready for review
November 12, 2026 20:01
sjmignot
approved these changes
Nov 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Java callers can now submit offline queries with
offlineQuery(params)and poll a revision withgetOfflineQueryStatus(params)to obtain completion, errors, and signed Parquet download URLs. Both methods wrap the existing/v4/offline_queryREST endpoints; submission routes through the API server and status honors the configured query server.Supports SQL or existing Parquet URI inputs, sampling without inputs, outputs/required outputs, time bounds, parallelism, and environment/branch overrides. Request timeouts apply to individual HTTP calls. Error lists preserve job failures, cancellation, and expiration, including errors returned with HTTP 200.
Scope: HTTP client only; gRPC clients return an explicit unsupported-operation error. Local input upload, automatic waiting, cancellation, and Java result-table loading are not included. No backend or protobuf changes.
Validation on Coder (JDK 17):
./gradlew test --tests ai.chalk.client.TestOfflineQuery --tests ai.chalk.client.TestPing --tests ai.chalk.client.TestAggregateBackfillClient— all 9 tests passed. Covers API/engine routing with separate mock servers, auth and environment/branch headers, request serialization, pending/success/failed/cancelled/expired responses, HTTP errors, and invalid parameters.git diff --checkpassed. Live staging smoke test (JDK 21) also passed in environmenttmnmwqtcbscbd: revision26fa641d-bf92-4fff-8baf-c6ceec0c438e. Submitted two synthetic merchant IDs via SQL input with an explicit timestamp, computedmerchant.as_of, polled to completion, downloaded one Parquet file, and verified exactly two expected IDs and exact point-in-time timestamps. Online/offline feature persistence was disabled. All four workflow jobs completed; elapsed time was approximately 3m 40s.