Skip to content
Merged
Show file tree
Hide file tree
Changes from 17 commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
8f0f7c3
Fix cache warmer: Linux-only, OS-agnostic cache key
gopalldb Apr 8, 2026
2344880
Merge branch 'databricks:main' into main
gopalldb Apr 8, 2026
309cd68
Merge branch 'databricks:main' into main
gopalldb Apr 8, 2026
1534d1c
Merge branch 'databricks:main' into main
gopalldb Apr 8, 2026
b28bbc6
Merge branch 'databricks:main' into main
gopalldb Apr 8, 2026
522ca76
Merge branch 'databricks:main' into main
gopalldb Apr 8, 2026
3b9a5c2
Merge branch 'databricks:main' into main
gopalldb Apr 8, 2026
621eea0
Merge branch 'databricks:main' into main
gopalldb Apr 8, 2026
122a967
Merge branch 'databricks:main' into main
gopalldb Apr 8, 2026
2377e63
Merge branch 'databricks:main' into main
gopalldb Apr 8, 2026
d3559f1
Merge branch 'databricks:main' into main
gopalldb Apr 9, 2026
b84d320
Merge branch 'databricks:main' into main
gopalldb Apr 9, 2026
72636bf
Merge branch 'databricks:main' into main
gopalldb Apr 10, 2026
f4974b5
Merge branch 'databricks:main' into main
gopalldb Apr 20, 2026
6f11980
Merge branch 'databricks:main' into main
gopalldb Apr 21, 2026
419d4ec
Change UseQueryForMetadata default to 1 (SHOW commands)
gopalldb Apr 21, 2026
b5e1023
Merge branch 'main' into feature/use-query-for-metadata-default
gopalldb Apr 21, 2026
8e9ab5b
Change UseQueryForMetadata default to 1 for SQL Warehouses only
gopalldb Apr 21, 2026
681a81d
Expand SEA to Statement Execution API in changelog
gopalldb Apr 21, 2026
9490337
Fix integration tests: set UseQueryForMetadata=0 for fake service
gopalldb Apr 21, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions NEXT_CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@
- Added AI coding agent detection to the User-Agent header. When the driver is invoked by a known AI coding agent (e.g. Claude Code, Cursor, Gemini CLI), `agent/<product>` is appended to the User-Agent string.

### Updated
- **[Breaking Change]** Thrift-mode metadata operations (`getTables`, `getColumns`, `getSchemas`, `getFunctions`, `getPrimaryKeys`, `getImportedKeys`, `getCrossReference`) now use SQL SHOW commands by default instead of native Thrift RPCs, aligning behavior with SEA mode. The `UseQueryForMetadata` connection property default changed from `0` to `1`. To revert to native Thrift RPCs, set `UseQueryForMetadata=0`. Key behavioral changes:
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

use StatementExecAPI instead of SEA

- Catalog parameter is now treated as a literal identifier (not a wildcard pattern) per JDBC spec. Use `null` to search across all catalogs.
- Methods that previously threw exceptions for null/empty edge-case inputs now return empty result sets.
- `getFunctions` now works correctly (was broken via native Thrift RPC).
- Result columns (TABLE_CATALOG, etc.) return stored values (lowercase) instead of preserving input case.
- Connection properties `EnableShowCommandForGetFunctions` and `TreatMetadataCatalogNameAsPattern` are now redundant when `UseQueryForMetadata=1` (the new default).

### Fixed
- Fixed `EnableBatchedInserts` silently falling back to individual execution when table or schema names contain special characters (e.g., hyphens) inside backtick-quoted identifiers. Added a warn log when the fallback occurs.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ public enum DatabricksJdbcUrlParams {
USE_QUERY_FOR_METADATA(
"UseQueryForMetadata",
"Use SQL SHOW commands instead of Thrift RPCs for metadata operations. When enabled, EnableShowCommandForGetFunctions is redundant",
"0"),
"1"),
TREAT_METADATA_CATALOG_NAME_AS_PATTERN(
"TreatMetadataCatalogNameAsPattern",
"Treat catalog names as patterns in Thrift metadata RPCs. When disabled (default), wildcard characters in catalog names are escaped",
Expand Down
Loading