frbvianna opened a new issue, #2517:
URL: https://github.com/apache/arrow-adbc/issues/2517

   ### What happened?
   
   When getting objects at either ObjectDepthColumns or ObjectDepthAll, with 
all the necessary table information (catalog, schema, table): 
   ```go
   rr, err := cnxn.GetObjects(ctx, adbc.ObjectDepthColumns, &catalog, &schema, 
&table, nil, nil)
   if err != nil {
        return err
   }
   ```
   If no schema is set with either `snowflake.OptionSchema` or executing `USE 
SCHEMA <name>` query, the following error is returned:
   
   `I/O: [Snowflake] Internal query returned wrong type of value: %!s(<nil>)`
   
   This looks to be due to `SELECT CURRENT_SCHEMA()` returning nullish in the 
call to `GetCurrentDbSchema` in the below code. Can't the schema name passed to 
the function call be used in case it is present?
   
   
https://github.com/apache/arrow-adbc/blob/11e168109673a4e7d643e419e71e3c5421d095e7/go/adbc/driver/snowflake/connection.go#L321-L343
   
   ### Stack Trace
   
   _No response_
   
   ### How can we reproduce the bug?
   
   _No response_
   
   ### Environment/Setup
   
   _No response_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@arrow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to