Skip to content

Commit b8faff5

Browse files
feat(csharp): bump driver version to 1.1.0 (#386)
## Summary - Updates `hiveserver2` submodule to pick up [adbc-drivers/hiveserver2#32](adbc-drivers/hiveserver2#32), which makes `ProductVersionDefault` a virtual property in `SparkConnection` - Overrides `ProductVersionDefault` in `DatabricksConnection` to report `1.1.0` in User-Agent headers ## Test plan - [ ] Verify User-Agent header reports `ADBCDatabricksDriver/1.1.0` in query history 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent d59a826 commit b8faff5

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

csharp/Directory.Packages.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
<PackageVersion Include="K4os.Compression.LZ4.Streams" Version="1.3.8" />
2626
<PackageVersion Include="Microsoft.IO.RecyclableMemoryStream" Version="3.0.1" />
2727
<!-- Testing -->
28-
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="18.0.1" />
28+
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="18.3.0" />
2929
<PackageVersion Include="xunit" Version="2.9.3" />
3030
<PackageVersion Include="xunit.runner.visualstudio" Version="3.1.5" />
3131
<PackageVersion Include="Xunit.SkippableFact" Version="1.5.61" />

csharp/src/DatabricksConnection.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ namespace AdbcDrivers.Databricks
5151
internal class DatabricksConnection : SparkHttpConnection
5252
{
5353
internal const string DatabricksDriverName = "ADBC Databricks Driver";
54+
internal const string DriverVersion = "1.1.0";
5455
internal static new readonly string s_assemblyName = ApacheUtility.GetAssemblyName(typeof(DatabricksConnection));
5556
internal static new readonly string s_assemblyVersion = ApacheUtility.GetAssemblyVersion(typeof(DatabricksConnection));
5657

@@ -441,6 +442,7 @@ protected override HttpMessageHandler CreateHttpHandler()
441442
protected override bool GetObjectsPatternsRequireLowerCase => true;
442443

443444
protected override string DriverName => DatabricksDriverName;
445+
protected override string ProductVersionDefault => DriverVersion;
444446

445447
/// <summary>
446448
/// Overrides GetObjects to emit telemetry with appropriate operation type based on depth.

csharp/src/StatementExecution/StatementExecutionConnection.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ private string GetUserAgent(IReadOnlyDictionary<string, string> properties)
352352
{
353353
// Use DatabricksJDBCDriverOSS prefix for server-side feature compatibility
354354
// (e.g., INLINE_OR_EXTERNAL_LINKS disposition support)
355-
string baseUserAgent = $"DatabricksJDBCDriverOSS/{AssemblyVersion} (ADBC)";
355+
string baseUserAgent = $"DatabricksJDBCDriverOSS/{DatabricksConnection.DriverVersion} (ADBC)";
356356

357357
// Check if a client has provided a user-agent entry
358358
string userAgentEntry = PropertyHelper.GetStringProperty(properties, "adbc.spark.user_agent_entry", string.Empty);

0 commit comments

Comments
 (0)