Skip to content

Commit afbcedd

Browse files
authored
feat(csharp): make DriverName virtual in SparkConnection to enable driver-specific identification (#3893)
## Summary Converts `DriverName` from a constant to a virtual property in `SparkConnection`, enabling derived drivers (Databricks) to properly identify themselves in GetInfo API responses and User-Agent headers. Associated PR: [https://github.com/adbc-drivers/databricks/pull/127](https://github.com/adbc-drivers/databricks/pull/127)
1 parent 83daafc commit afbcedd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

csharp/src/Drivers/Apache/Spark/SparkConnection.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ namespace Apache.Arrow.Adbc.Drivers.Apache.Spark
2828
internal abstract class SparkConnection : HiveServer2Connection
2929
{
3030
protected const string ProductVersionDefault = "1.0.0";
31-
protected const string DriverName = "ADBC Spark Driver";
31+
protected virtual string DriverName => "ADBC Spark Driver";
3232
private const string ArrowVersion = "1.0.0";
3333
private readonly Lazy<string> _productVersion;
3434

0 commit comments

Comments
 (0)