databricks Databricks Java SDK Releases · · 0.117.0

Databricks SDK Java v0.117.0: Enhanced AI agent detection and pagination

sdkaidatabricksdeprecationengineer
deprecation feature patch

Databricks SDK Java version 0.117.0 enhances AI agent detection by recognizing the AI_AGENT environment variable, improving user agent reporting for recognized AI tools. It also introduces explicit factory methods for pagination strategies, deprecating the direct constructor. Bug fixes address issues with paginators silently dropping results on empty pages. These updates benefit developers using the SDK for interacting with Databricks AI features and data listing operations.

Features (2)
  • Detect the AI_AGENT environment variable (Vercel @vercel/detect-agent convention) as a secondary fallback for the AI agent reported in the user agent, consulted only when the agents.md AGENT variable is unset or empty. An unrecognized AGENT or AI_AGENT value is now passed through as-is (sanitized to the user agent allowlist and capped at 64 characters) instead of being reported as unknown. Mirrors databricks/databricks-sdk-go#1683

  • Added Paginator.newTokenPagination(...) and Paginator.newOffsetPagination(...) factory methods in com.databricks.sdk.support, which make the pagination strategy explicit. The Paginator constructor is now deprecated in favor of these; it keeps its previous (offset/limit) behavior

Fixes (1)
  • Fixed Paginator silently dropping results when a token-paginated response returned an empty page with a non-empty next_page_token. List methods (e.g. tables().list()) now keep paging until the page token is absent instead of stopping at the first empty page

Read the original announcement →

https://github.com/databricks/databricks-sdk-java/releases/tag/v0.117.0

Related releases