-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(c/driver/postgresql): implement ADBC 1.1.0 features #852
feat(c/driver/postgresql): implement ADBC 1.1.0 features #852
Conversation
efe9f79
to
761f612
Compare
2ce8ab0
to
9bc683c
Compare
Note this can't build until SQLite and all the Go FFI is updated too (which is a pain) |
9bc683c
to
ec2163a
Compare
TODOs
|
ec2163a
to
452cd56
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice work
return ADBC_STATUS_NOT_FOUND; | ||
} | ||
|
||
if (output.size() + 1 <= *length) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this raise an error when not true?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, the idea is that you can check the out length, then call it again with a larger buffer if necessary
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah OK - guessing that is already handled in the ADBC class already then? It isn't the most obvious error if the caller's buffer is too small especially since we return ADBC_STATUS_OK
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The idea is you can check the returned length; if it's too awkward we can consider something else but I dislike trying to overload the return code to mean anything except an error (and I don't think this is strictly an error)
452cd56
to
a17176c
Compare
d6a083c
to
d501092
Compare
dde3bae
to
e4a7081
Compare
|
Will merge once I get green CI on my branch (https://github.com/lidavidm/arrow-adbc/tree/spec-1.1.0-execute-schema-cpp) |
250e39a
to
b0050a2
Compare
a1b821f
to
d1f8890
Compare
- ADBC_INFO_DRIVER_ADBC_VERSION - StatementExecuteSchema (apache#318) - ADBC_CONNECTION_OPTION_CURRENT_{CATALOG, DB_SCHEMA) (apache#319) - ConnectionCancel/StatementCancel - GetOption/SetOption - Ingest modes
d1f8890
to
144244f
Compare
AdbcStatementExecuteSchema
#318)