yuyang-ok commented on issue #41123:
URL: https://github.com/apache/arrow/issues/41123#issuecomment-2049250429
I use go to test my code kind like this.
~~~
package main
import (
"database/sql"
"fmt"
_ "github.com/apache/arrow-adbc/go/adbc/sqldriver/flightsql"
)
func main() {
dsn :=
"uri=grpc://192.168.56.220:33453;username=admin;password=password"
db, err := sql.Open("flightsql", dsn)
if err != nil {
panic(err)
}
row := db.QueryRow("select 100")
var value int64
err = row.Scan(&value)
if err != nil {
panic(err)
}
fmt.Println("value:", value)
}
~~~
and I get this error.
~~~
go run main.go
panic: I/O: [FlightSQL] connection error: desc = "transport: Error while
dialing: dial tcp 192.168.56.220:33453: i/o timeout" (Unavailable;
AuthenticateBasicToken)
goroutine 1 [running]:
main.main()
D:/gotest/main.go:20 +0x118
exit status 2
~~~
Is this means this is a server problem.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]