Skip to content
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: ADBC API revision 1.1.0 #971

Merged
merged 29 commits into from
Aug 28, 2023
Merged

feat: ADBC API revision 1.1.0 #971

merged 29 commits into from
Aug 28, 2023

Conversation

lidavidm
Copy link
Member

@lidavidm lidavidm commented Aug 8, 2023

Fixes #55.
Fixes #317.
Fixes #318.
Fixes #319.
Fixes #442.
Fixes #458.
Fixes #459.
Fixes #541.
Fixes #620.
Fixes #685.
Fixes #736.
Fixes #755.
Fixes #939.
Fixes #940.
Fixes #942.
Fixes #962.

@lidavidm lidavidm added this to the ADBC API Specification 1.1.0 milestone Aug 8, 2023
@lidavidm
Copy link
Member Author

lidavidm commented Aug 8, 2023

It looks like I added #442 to the header but did not implement it, so I'll go do that. Otherwise, this should be ready for review, though I'll also take some time to review the implementation.

@lidavidm lidavidm marked this pull request as ready for review August 8, 2023 17:05
@lidavidm
Copy link
Member Author

lidavidm commented Aug 8, 2023

Hmm, it looks like the Linux packages all still have at most Go 1.18. That's a bit of a problem, since then we can't propagate our cancellation error...

@lidavidm
Copy link
Member Author

lidavidm commented Aug 8, 2023

Alright, I'll revert to Go 1.18 (though, leaving Go 1.20 in CI mostly) and instead of context.Cause rely on exact comparison with context.Canceled and context.DeadlineExceeded

@lidavidm lidavidm force-pushed the spec-1.1.0 branch 2 times, most recently from e65e69e to 7f79f2b Compare August 8, 2023 20:22
@lidavidm
Copy link
Member Author

lidavidm commented Aug 8, 2023

@zeroshade this is ready for review. I'll be posting to the ML this week for voting unless I hear objections.

Copy link
Member

@paleolimbot paleolimbot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is very exciting! I'm particularly excited for cancellation and progress options since these are frequently requested features for general database access in R that have long been unresolved.

adbc.h Outdated Show resolved Hide resolved
@paleolimbot
Copy link
Member

I think this has come up in some other discussion; however, just a note for the record that I'm looking forward to implementing the R bindings on top of this! Since the R bindings are a (very) thin wrapper around the C header, I think it makes sense to vote on this without R and I will implement the required changes for the first ADBC libraries release that implements it 🙂 .

@lidavidm
Copy link
Member Author

lidavidm commented Aug 9, 2023

I think the Snowflake test failures are the two test runs colliding with each other.

go-version-file: 'go/adbc/go.mod'
go-version: 1.20.7
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

any particular reason to specify the version explicitly instead of pull it from the go.mod?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've been through this already in prior PRs, I'm not really interested in redoing all this. (+ it's annoying trying to use an old Go since it's tied to the version of golangci-lint.)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reverted, though I'll have to figure out staticcheck and golangci-lint again...

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we can just bump the go.mod to be 1.20 and use the newer golangci-lint and staticcheck

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can't, because debian etc. only have go 1.18

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

again, I had to go through this all in the previous PR 😬

Copy link
Member

@zeroshade zeroshade left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Most of everything has already been reviewed before it was merged into this branch in the first place. Did a quick look over everything and nothing stands out as problematic or as having had an issue during the merge. so it all LGTM 😄

Thanks for all the work here @lidavidm I know it wasn't easy coordinating all this.

@lidavidm lidavidm force-pushed the spec-1.1.0 branch 2 times, most recently from 445d8be to ca4f151 Compare August 10, 2023 23:50
@lidavidm
Copy link
Member Author

I realized I forgot about #417 so I'll grab that, assume we're OK with declaring that parameter const @zeroshade?

lidavidm and others added 6 commits August 28, 2023 09:30
Fixes #317.

---------

Co-authored-by: Matt Topol <[email protected]>
Co-authored-by: Sutou Kouhei <[email protected]>
- Clarify one of the docstrings
- Remove the 'future growth' padding since we have a different
compatibility strategy
- ADBC_INFO_DRIVER_ADBC_VERSION
- StatementExecuteSchema (#318)
- ADBC_CONNECTION_OPTION_CURRENT_{CATALOG, DB_SCHEMA} (#319)
- Get/SetOption
- error_details (#755)
- GetStatistics (#685)
- New ingest modes (#541)
lidavidm and others added 22 commits August 28, 2023 09:30
- ADBC_INFO_DRIVER_ADBC_VERSION
- StatementExecuteSchema (#318)
- ADBC_CONNECTION_OPTION_CURRENT_{CATALOG, DB_SCHEMA} (#319)
- error_details (#755)
- GetStatistics (#685)
- ADBC_INFO_DRIVER_ADBC_VERSION
- StatementExecuteSchema (#318)
- ADBC_CONNECTION_OPTION_CURRENT_{CATALOG, DB_SCHEMA} (#319)
- Cancellation
- Get/SetOption
- New ingest modes
@lidavidm
Copy link
Member Author

Filed #995 for the error in the Documentation pipeline

@lidavidm lidavidm merged commit ba7032d into main Aug 28, 2023
76 of 77 checks passed
@lidavidm lidavidm deleted the spec-1.1.0 branch August 28, 2023 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment