Skip to content

Conversation

@mykaul
Copy link

@mykaul mykaul commented Dec 30, 2025

In most of the cases, it is simply not needed. For the very few cases it is, kept it. I think it simplifies the code.
CoPi did most of the work, I've looked after the horrors.

Pre-review checklist

  • I have split my patch into logically separate commits.
  • All commit messages clearly explain what they change and why.
  • I added relevant tests for new features and bug fixes.
  • All commits compile, pass static checks and pass test.
  • PR description sums up the changes and reasons why they should be introduced.
  • I have provided docstrings for the public items that I want to introduce.
  • I have adjusted the documentation in ./docs/source/.
  • I added appropriate Fixes: annotations to PR description.

In most of the cases, it is simply not needed. For the very few cases it is, kept it.
I think it simplifies the code.

Signed-off-by: Yaniv Kaul <yaniv.kaul@scylladb.com>
@mykaul
Copy link
Author

mykaul commented Dec 30, 2025

(Mostly done with AI, so blame it if it doesn't work)

The Cython implementation in row_parser.pyx expects recv_results_rows()
to take protocol_version as a parameter. Updated both the call site and
method signature in protocol.py to match.

This fixes the "recv_results_rows() takes exactly 6 positional arguments
(5 given)" error that was causing authentication and cluster test failures.
OrderedMapSerializedKey now takes a single cass_type_instance argument
instead of (cass_type, protocol_version). Updated the Cython deserializer
to instantiate the key_type with protocol_version before passing it.

This fixes the "map<varchar, varchar>: __init__() takes exactly 2
positional arguments (3 given)" error.
Changed desc.protocol_version to deserializer.protocol_version since
protocol_version was removed from ParseDesc as part of the refactoring.
The protocol_version is now stored in the Deserializer instances.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant