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

zeroshade pushed a commit to branch fixup-metadata-getobjects-snowflake
in repository https://gitbox.apache.org/repos/asf/arrow-adbc.git

commit 78829a88dd8b55e4d3b1cb0e58d11e5b1c7a76d9
Author: Matt Topol <[email protected]>
AuthorDate: Wed Oct 16 13:35:48 2024 -0400

    fix get object tables
---
 go/adbc/driver/snowflake/connection.go | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/go/adbc/driver/snowflake/connection.go 
b/go/adbc/driver/snowflake/connection.go
index c77b45436..5abf90476 100644
--- a/go/adbc/driver/snowflake/connection.go
+++ b/go/adbc/driver/snowflake/connection.go
@@ -213,12 +213,12 @@ func (c *connectionImpl) GetObjects(ctx context.Context, 
depth adbc.ObjectDepth,
                        catalog, dbSchema, tableName, &showSchemaQueryID)
                goGetQueryID(gQueryIDsCtx, conn, gQueryIDs, objDatabases,
                        catalog, dbSchema, tableName, &terseDbQueryID)
-               objType := "objects"
+               objType := objObjects
                if len(tableType) == 1 {
                        if strings.EqualFold("VIEW", tableType[0]) {
-                               objType = "views"
+                               objType = objViews
                        } else if strings.EqualFold("TABLE", tableType[0]) {
-                               objType = "tables"
+                               objType = objTables
                        }
                }
                goGetQueryID(gQueryIDsCtx, conn, gQueryIDs, objType,
@@ -270,12 +270,12 @@ func (c *connectionImpl) GetObjects(ctx context.Context, 
depth adbc.ObjectDepth,
                goGetQueryID(gQueryIDsCtx, conn, gQueryIDs, objSchemas,
                        catalog, dbSchema, tableName, &showSchemaQueryID)
 
-               objType := "objects"
+               objType := objObjects
                if len(tableType) == 1 {
                        if strings.EqualFold("VIEW", tableType[0]) {
-                               objType = "views"
+                               objType = objViews
                        } else if strings.EqualFold("TABLE", tableType[0]) {
-                               objType = "tables"
+                               objType = objTables
                        }
                }
                goGetQueryID(gQueryIDsCtx, conn, gQueryIDs, objType,

Reply via email to