kou commented on PR #946:
URL: https://github.com/apache/arrow-adbc/pull/946#issuecomment-1657265326
> It's a little unfortunate that we have this amount of API baggage already
Ah...
We may want to provide an initialization macro for convenient but it may not
reduce the migration cost so much...:
```c
#define ARROW_ADBC_ERROR_INIT {NULL,
ADBC_ERROR_VENDOR_CODE_USE_PRIVATE_DATA, "\0\0\0\0\0", NULL}
// struct AdbcError error = {0};
struct AdbcError error = ARROW_ADBC_ERROR_INIT;
```
--
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]