You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "lidavidm (via GitHub)" <gi...@apache.org> on 2023/03/06 19:40:19 UTC

[GitHub] [arrow-adbc] lidavidm commented on a diff in pull request #490: fix(go/adbc/driver/flightsql): fix stream timeout interceptor

lidavidm commented on code in PR #490:
URL: https://github.com/apache/arrow-adbc/pull/490#discussion_r1126939618


##########
go/adbc/driver/flightsql/flightsql_adbc_test.go:
##########
@@ -838,6 +875,34 @@ func (ts *TimeoutTestSuite) TestGetFlightInfoTimeout() {
 	ts.NotEqual(adbc.StatusNotImplemented, adbcErr.Code)
 }
 
+func (ts *TimeoutTestSuite) TestDontTimeout() {

Review Comment:
   Can we also add a test that should timeout? e.g. set the timeout to 0.01 seconds and ensure it actually fails.



##########
go/adbc/driver/flightsql/utils.go:
##########
@@ -32,7 +32,7 @@ func adbcFromFlightStatus(err error) error {
 	switch status.Code(err) {
 	case codes.OK:
 		return nil
-	case codes.Canceled:
+	case codes.Canceled, codes.DeadlineExceeded:

Review Comment:
   there's a separate TIMEOUT status: https://github.com/apache/arrow-adbc/blob/fc01c31c95b48cdc22f0780d1498d89dd20563f9/go/adbc/adbc.go#L134



-- 
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-unsubscribe@arrow.apache.org

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