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

vdk-core: hide native cursor from execute hook #875

Merged
merged 5 commits into from
Jun 23, 2022

Conversation

antoniivanov
Copy link
Collaborator

The current design was allowing users to access directly native cursor
unwrapped which defeat the purpose of being on data/control path of
queries as Iva correctly pointed out in earlier review.

It was necessary because user need to be able to invoke native vendor
specific methods (like get_profile of impala cursor).

But there's better approach where both users are allowed to call vendor
specific methods yet keep certain methods (like execute) curated/wrapped
by VDK. It's by introducing ProxyCursor (which is moving some
functionalith of ManagedCursor).

Testing Done: existing tests passed. I added explicit functional test to
test the proxying functionality

Signed-off-by: Antoni Ivanov [email protected]

The current design was allowing users to access directly native cursor
unwrapped which defeat the purpose of being on data/control path of
queries as Iva correctly pointed out in earlier review.

It was necessary because user need to be able to invoke native vendor
specific methods (like get_profile of impala cursor).

But there's better approach where both users are allowed to call vendor
specific methods yet keep certain methods (like execute) curated/wrapped
by VDK. It's by introducing ProxyCursor (which is moving some
functionalith of ManagedCursor).

Testing Done: existing tests passed. I added explicit functional test to
test the proxying functionality

Signed-off-by: Antoni Ivanov <[email protected]>
@antoniivanov antoniivanov merged commit e0ddb76 into main Jun 23, 2022
@antoniivanov antoniivanov deleted the person/aivanov/vdk-core-conn branch June 23, 2022 12:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants