jasonlin45 commented on code in PR #3325:
URL: https://github.com/apache/arrow-adbc/pull/3325#discussion_r2335210689


##########
go/adbc/driver/databricks/statement_test.go:
##########
@@ -0,0 +1,46 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements.  See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership.  The ASF licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License.  You may obtain a copy of the License at
+//
+//   http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied.  See the License for the
+// specific language governing permissions and limitations
+// under the License.
+
+package databricks_test
+
+import (
+       "testing"
+
+       "github.com/apache/arrow-adbc/go/adbc/driver/databricks"
+       "github.com/apache/arrow-adbc/go/adbc/validation"
+       "github.com/stretchr/testify/assert"
+)
+
+func TestStatementBasic(t *testing.T) {
+       // This is a basic test to ensure the code compiles
+       // Real tests would require a connection to Databricks
+
+       // Create a driver and database
+       driver := databricks.NewDriver(nil)
+       db, err := driver.NewDatabase(map[string]string{
+               databricks.OptionServerHostname: "mock-host",
+               databricks.OptionAccessToken:    "mock-token",
+               databricks.OptionHTTPPath:       "mock-path",
+       })
+       assert.NoError(t, err)
+
+       defer validation.CheckedClose(t, db)
+
+       // Note: We can't test the actual statement implementation without a 
real connection
+       // This test just ensures the public API compiles correctly

Review Comment:
   Ah! Just took a look - it will be much better. It's a larger lift, will get 
this in and ping you as soon as it's done 🫡 



-- 
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: github-unsubscr...@arrow.apache.org

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

Reply via email to