This is an automated email from the ASF dual-hosted git repository.

CurtHagenlocher pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-adbc.git


The following commit(s) were added to refs/heads/main by this push:
     new 287ddd0e5 fix(csharp): use correct user and system driver directories 
(#4330)
287ddd0e5 is described below

commit 287ddd0e56f279decd741fddc05c99af01f66d6a
Author: Emil Sadek <[email protected]>
AuthorDate: Tue May 19 19:57:11 2026 -0700

    fix(csharp): use correct user and system driver directories (#4330)
    
    Closes #4327
    
    ---------
    
    Co-authored-by: Emil Sadek <[email protected]>
---
 .../src/Apache.Arrow.Adbc/DriverManager/AdbcDriverManager.cs  | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/csharp/src/Apache.Arrow.Adbc/DriverManager/AdbcDriverManager.cs 
b/csharp/src/Apache.Arrow.Adbc/DriverManager/AdbcDriverManager.cs
index ade6c3109..88adeddfe 100644
--- a/csharp/src/Apache.Arrow.Adbc/DriverManager/AdbcDriverManager.cs
+++ b/csharp/src/Apache.Arrow.Adbc/DriverManager/AdbcDriverManager.cs
@@ -849,6 +849,11 @@ namespace Apache.Arrow.Adbc.DriverManager
                 string? appData = 
Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData);
                 return string.IsNullOrEmpty(appData) ? string.Empty : 
Path.Combine(appData, "adbc", "drivers");
             }
+            else if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
+            {
+                string home = 
Environment.GetFolderPath(Environment.SpecialFolder.UserProfile);
+                return string.IsNullOrEmpty(home) ? string.Empty : 
Path.Combine(home, "Library", "Application Support", "ADBC", "Drivers");
+            }
             else
             {
                 string home = 
Environment.GetFolderPath(Environment.SpecialFolder.UserProfile);
@@ -863,9 +868,13 @@ namespace Apache.Arrow.Adbc.DriverManager
                 string? sysRoot = 
Environment.GetEnvironmentVariable("ProgramData");
                 return string.IsNullOrEmpty(sysRoot) ? string.Empty : 
Path.Combine(sysRoot, "adbc", "drivers");
             }
+            else if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
+            {
+                return "/Library/Application Support/ADBC/Drivers";
+            }
             else
             {
-                return "/usr/lib/adbc";
+                return "/etc/adbc/drivers";
             }
         }
 

Reply via email to