This is an automated email from the ASF dual-hosted git repository.
lidavidm pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-adbc.git
The following commit(s) were added to refs/heads/main by this push:
new 608982dc fix(go/adbc/driver/snowflake): default SetOption to
StatusNotImplemented (#1120)
608982dc is described below
commit 608982dc26069e169b43ccd7573c0d25774a7e07
Author: Fredrik Hoem Grelland
<[email protected]>
AuthorDate: Thu Sep 28 14:52:49 2023 +0200
fix(go/adbc/driver/snowflake): default SetOption to StatusNotImplemented
(#1120)
See
https://github.com/apache/arrow-adbc/pull/1118#discussion_r1339095054
Fixes #1119.
---
go/adbc/driver/snowflake/statement.go | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/go/adbc/driver/snowflake/statement.go
b/go/adbc/driver/snowflake/statement.go
index e8707bfd..a79d394b 100644
--- a/go/adbc/driver/snowflake/statement.go
+++ b/go/adbc/driver/snowflake/statement.go
@@ -144,8 +144,8 @@ func (st *statement) SetOption(key string, val string)
error {
return st.SetOptionInt(key, int64(concurrency))
default:
return adbc.Error{
- Msg: fmt.Sprintf("invalid statement option %s=%s",
key, val),
- Code: adbc.StatusInvalidArgument,
+ Msg: fmt.Sprintf("[Snowflake] Unknown statement option
'%s'", key),
+ Code: adbc.StatusNotImplemented,
}
}
return nil