-
Notifications
You must be signed in to change notification settings - Fork 111
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
Adjust Book examples to the new deserialization API #1118
Adjust Book examples to the new deserialization API #1118
Conversation
|
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.
Looks good - all of my comments are regarding one issue: that we should use borrowed deserialization where possible.
Oh wait, most of those is probably because we have no lending stream, right?
|
I'm not convinced we have to introduce the closure API in this release. After all, it's going to be a new API, not breaking anything. OTOH other APIs introduced in the deserialization refactor aren't entirely new APIs; they are rather improvements over old APIs (QueryResult, TypedRowStream etc.). Designing the closure API, testing it, documenting it, adjusting examples etc. is going to be a large task, not suitable for 0.15 IMO. Especially that the execution API refactor can mess with those APIs, too... |
fb79108
to
4502c3a
Compare
5c22a8c
to
4b853c5
Compare
Examples in the Book are now adjusted to the new deserialization API, and the book finally compile and the tests there pass. Note that this commit does not describe exhaustively the intended way of using the new deserialization framework; this is left for a follow-up. Co-authored-by: Wojciech Przytuła <wojciech.przytula@scylladb.com>
4b853c5
to
e38486b
Compare
This PR adjusts examples in the Book to the new API, so that the tests compile and pass. This should be merged quickly to bring back the passing Book check to the CI.
Further adjustments of the Book to the new API, including more descriptive tips and a migration guide, are left as a follow-up.
Refs: #462
Depends on: #1057
Pre-review checklist
[ ] I added relevant tests for new features and bug fixes.[ ] I have provided docstrings for the public items that I want to introduce../docs/source/
.[ ] I added appropriateFixes:
annotations to PR description.