Skip to content

Commit ed7483d

Browse files
authored
Enable telemetry by default + prepare to release v1.0.9-oss (#948)
## Description - [Release checklist (all tests pass)](https://docs.google.com/document/d/1t-ZHd8133w6-8v7-NOkvBCJrB5qxLKPqRkNUOpb4yVA/edit?tab=t.0) - [Telemetry readiness doc](https://docs.google.com/document/d/1oAu1pTCM9VFrPDCt0I_aWsSIoNGOapmGc_2Zob6QUiA/edit?tab=t.0#heading=h.j2e11ackxml8) ## Testing - The release testing passes ## Additional Notes to the Reviewer <!-- Share any additional context or insights that may help the reviewer understand the changes better. This could include challenges faced, limitations, or compromises made during the development process. Also, mention any areas of the code that you would like the reviewer to focus on specifically. -->
1 parent a8c4ead commit ed7483d

File tree

11 files changed

+30
-21
lines changed

11 files changed

+30
-21
lines changed

CHANGELOG.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,22 @@
11
# Version Changelog
22

3+
## [v1.0.9-oss] - 2025-08-19
4+
### Added
5+
- Added support for providing custom HTTP options: `HttpMaxConnectionsPerRoute` and `HttpConnectionRequestTimeout`.
6+
- Add V2 of chunk download using async http client with corresponding implementations of AbstractRemoteChunkProvider and
7+
AbstractArrowResultChunk
8+
- Telemetry is enabled by default, subject to server-side rollout.
9+
10+
### Updated
11+
12+
### Fixed
13+
- Fixed Statement.getUpdateCount to return -1 for non-DML queries.
14+
- Fixed Statement.setMaxRows(0) to be interepeted as no limit.
15+
- Fixed retry behaviour to not throw an exception when there is no retry-after header for 503 and 429 status codes.
16+
- Fixed encoded UserAgent parsing in BI tools.
17+
- Fixed setting empty schema as the default schema in the spark session.
18+
---
19+
320
## [v1.0.8-oss] - 2025-07-25
421

522
### Added

NEXT_CHANGELOG.md

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,10 @@
33
## [Unreleased]
44

55
### Added
6-
- Added support for providing custom HTTP options: `HttpMaxConnectionsPerRoute` and `HttpConnectionRequestTimeout`.
7-
- Add V2 of chunk download using async http client with corresponding implementations of AbstractRemoteChunkProvider and
8-
AbstractArrowResultChunk
9-
- Added CircuitBreaker support to handle transient failures in the Telemetry.
106

117
### Updated
128

139
### Fixed
14-
- Fixed Statement.getUpdateCount to return -1 for non-DML queries.
15-
- Fixed Statement.setMaxRows(0) to be interepeted as no limit.
16-
- Fixed retry behaviour to not throw an exception when there is no retry-after header for 503 and 429 status codes.
17-
- Fixed encoded UserAgent parsing in BI tools.
18-
- Fixed setting empty schema as the default schema in the spark session.
10+
1911
---
2012
*Note: When making changes, please add your change under the appropriate section with a brief description.*

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Add the following dependency to your `pom.xml`:
2020
<dependency>
2121
<groupId>com.databricks</groupId>
2222
<artifactId>databricks-jdbc</artifactId>
23-
<version>1.0.8-oss</version>
23+
<version>1.0.9-oss</version>
2424
</dependency>
2525
```
2626

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<groupId>com.databricks</groupId>
66
<artifactId>databricks-jdbc</artifactId>
77
<!-- This value may be modified by a release script to reflect the current version of the driver. -->
8-
<version>1.0.8-oss</version>
8+
<version>1.0.9-oss</version>
99
<packaging>jar</packaging>
1010
<name>Databricks JDBC Driver</name>
1111
<description>Databricks JDBC Driver.</description>

src/main/java/com/databricks/jdbc/common/DatabricksJdbcUrlParams.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public enum DatabricksJdbcUrlParams {
9191
ENABLE_TELEMETRY(
9292
"EnableTelemetry",
9393
"flag to enable telemetry",
94-
"0"), // Note : telemetry enablement also depends on the server flag.
94+
"1"), // Note : telemetry enablement also depends on the server flag.
9595
TELEMETRY_BATCH_SIZE("TelemetryBatchSize", "Batch size for telemetry", "200"),
9696
MAX_BATCH_SIZE("MaxBatchSize", "Maximum batch size", "500"),
9797
ALLOWED_VOLUME_INGESTION_PATHS("VolumeOperationAllowedLocalPaths", ""),

src/main/java/com/databricks/jdbc/common/util/DriverUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
public class DriverUtil {
2121

2222
private static final JdbcLogger LOGGER = JdbcLoggerFactory.getLogger(DriverUtil.class);
23-
private static final String DRIVER_VERSION = "1.0.8-oss";
23+
private static final String DRIVER_VERSION = "1.0.9-oss";
2424
private static final String DRIVER_NAME = "oss-jdbc";
2525
private static final String JDBC_VERSION = "4.3";
2626

src/test/java/com/databricks/jdbc/api/impl/DatabricksDatabaseMetaDataTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -801,7 +801,7 @@ public void testGetDriverName() throws SQLException {
801801
@Test
802802
public void testGetDriverVersion() throws SQLException {
803803
String result = metaData.getDriverVersion();
804-
assertEquals("1.0.8-oss", result);
804+
assertEquals("1.0.9-oss", result);
805805
}
806806

807807
@Test

src/test/java/com/databricks/jdbc/common/safe/DatabricksDriverFeatureFlagsContextTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class DatabricksDriverFeatureFlagsContextTest {
3737
@Mock private ObjectMapper objectMapperMock;
3838
private static final String FEATURE_FLAG_NAME = "featureFlagName";
3939
private static final String FEATURE_FLAGS_ENDPOINT =
40-
"https://test-host/api/2.0/connector-service/feature-flags/OSS_JDBC/1.0.8";
40+
"https://test-host/api/2.0/connector-service/feature-flags/OSS_JDBC/1.0.9";
4141

4242
private DatabricksDriverFeatureFlagsContext context;
4343

src/test/java/com/databricks/jdbc/common/util/DriverUtilTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ public class DriverUtilTest {
1414
public void testGetDriverVersion() {
1515
String version = DriverUtil.getDriverVersion();
1616
assertNotNull(version);
17-
assertEquals("1.0.8-oss", version);
17+
assertEquals("1.0.9-oss", version);
1818
}
1919

2020
@Test
2121
public void testGetDriverVersionWithoutOSSSuffix() {
2222
String version = DriverUtil.getDriverVersionWithoutOSSSuffix();
2323
assertNotNull(version);
24-
assertEquals("1.0.8", version);
24+
assertEquals("1.0.9", version);
2525
}
2626

2727
@Test

src/test/java/com/databricks/jdbc/common/util/UserAgentManagerTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ void testUserAgentSetsClientCorrectly() throws DatabricksSQLException {
8484
DatabricksConnectionContextFactory.create(CLUSTER_JDBC_URL, new Properties());
8585
UserAgentManager.setUserAgent(connectionContext);
8686
String userAgent = getUserAgentString();
87-
assertTrue(userAgent.contains("DatabricksJDBCDriverOSS/1.0.8-oss"));
87+
assertTrue(userAgent.contains("DatabricksJDBCDriverOSS/1.0.9-oss"));
8888
assertTrue(userAgent.contains(" Java/THttpClient"));
8989
assertTrue(userAgent.contains(" MyApp/version"));
9090
assertTrue(userAgent.contains(" databricks-jdbc-http "));
@@ -95,7 +95,7 @@ void testUserAgentSetsClientCorrectly() throws DatabricksSQLException {
9595
DatabricksConnectionContextFactory.create(WAREHOUSE_JDBC_URL, new Properties());
9696
UserAgentManager.setUserAgent(connectionContext);
9797
userAgent = getUserAgentString();
98-
assertTrue(userAgent.contains("DatabricksJDBCDriverOSS/1.0.8-oss"));
98+
assertTrue(userAgent.contains("DatabricksJDBCDriverOSS/1.0.9-oss"));
9999
assertTrue(userAgent.contains(" Java/THttpClient"));
100100
assertTrue(userAgent.contains(" MyApp/version"));
101101
assertTrue(userAgent.contains(" databricks-jdbc-http "));
@@ -106,7 +106,7 @@ void testUserAgentSetsClientCorrectly() throws DatabricksSQLException {
106106
DatabricksConnectionContextFactory.create(WAREHOUSE_JDBC_URL_WITH_SEA, new Properties());
107107
UserAgentManager.setUserAgent(connectionContext);
108108
userAgent = getUserAgentString();
109-
assertTrue(userAgent.contains("DatabricksJDBCDriverOSS/1.0.8-oss"));
109+
assertTrue(userAgent.contains("DatabricksJDBCDriverOSS/1.0.9-oss"));
110110
assertTrue(userAgent.contains(" Java/SQLExecHttpClient"));
111111
assertTrue(userAgent.contains(" databricks-jdbc-http "));
112112
assertFalse(userAgent.contains("databricks-sdk-java"));

0 commit comments

Comments
 (0)