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

zeroshade 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 11f92d0cd fix(go/adbc/driver/snowflake): Retain case for 
GetTableSchema field names (#3471)
11f92d0cd is described below

commit 11f92d0cdad30908464d8f01b74f5440d980db6d
Author: Anna Lee <[email protected]>
AuthorDate: Tue Sep 23 15:43:33 2025 -0400

    fix(go/adbc/driver/snowflake): Retain case for GetTableSchema field names 
(#3471)
    
    The schema returned by GetTableSchema strips capitalization from field
    names. This PR retains the original capitalization, since by forcing
    field names to be lowercase we lose potentially case-sensitive names.
---
 go/adbc/driver/snowflake/connection.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/go/adbc/driver/snowflake/connection.go 
b/go/adbc/driver/snowflake/connection.go
index 6ed0e1fa8..c92d4d4b8 100644
--- a/go/adbc/driver/snowflake/connection.go
+++ b/go/adbc/driver/snowflake/connection.go
@@ -510,7 +510,7 @@ func (c *connectionImpl) toArrowField(columnInfo 
driverbase.ColumnInfo) arrow.Fi
 }
 
 func descToField(name, typ, isnull, primary string, comment sql.NullString, 
maxTimestampPrecision MaxTimestampPrecision) (field arrow.Field, err error) {
-       field.Name = strings.ToLower(name)
+       field.Name = name
        if isnull == "Y" {
                field.Nullable = true
        }

Reply via email to