ump45nose commented on code in PR #4924:
URL: https://github.com/apache/arrow-adbc/pull/4924#discussion_r4412754879


##########
go/driver/internal/driverbase/error.go:
##########
@@ -35,3 +36,10 @@ func (helper *ErrorHelper) Errorf(code adbc.Status, message 
string, format ...in
                Msg:  fmt.Sprintf("[%s] %s", helper.DriverName, msg),
        }
 }
+
+// isNotImplemented reports whether err is an ADBC error with status
+// NotImplemented, which is how the *ImplBase types reject unknown options.
+func isNotImplemented(err error) bool {
+       var adbcErr adbc.Error
+       return errors.As(err, &adbcErr) && adbcErr.Code == 
adbc.StatusNotImplemented

Review Comment:
   Updated `isNotImplemented` to use `errors.AsType[adbc.Error]` as suggested. 
Thanks for the review.
   
   The Windows C/C++ (windows-latest/release) failure looks unrelated to this 
Go-only change — it fails during MSYS2 setup with `error: target not found: 
mingw-w64-x86_64-tools`, before any of our code builds. Other C/C++ and all Go 
jobs are green.
   
   (AI-assisted reply.)



-- 
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]

Reply via email to