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

SNOW-910807: refactoring to reuse query context cache implementation in ODBC #647

Merged
2 commits merged into from
Jan 9, 2024

Conversation

ghost
Copy link

@ghost ghost commented Nov 29, 2023

sdk issue 643
Make the QCC implementation reusable.
To reuse the implementation in ODBC, similar as what's been done in ClientQueryContextCache, make a subclass of QueryContextCache and use picojson instead of cJSON.

@ghost ghost self-requested a review as a code owner November 29, 2023 21:37
@ghost ghost force-pushed the SNOW-910807-qcc-reusable branch from 6c368f1 to c5b70d9 Compare November 30, 2023 00:19
cpp/lib/ClientQueryContextCache.cpp Outdated Show resolved Hide resolved
cpp/lib/ClientQueryContextCache.cpp Outdated Show resolved Hide resolved
cpp/lib/ClientQueryContextCache.cpp Show resolved Hide resolved
cpp/lib/ClientQueryContextCache.hpp Outdated Show resolved Hide resolved
include/snowflake/client.h Outdated Show resolved Hide resolved
@ghost ghost force-pushed the SNOW-910807-qcc-reusable branch from c5b70d9 to 060723c Compare January 9, 2024 00:12
@ghost ghost requested a review from sfc-gh-dprzybysz January 9, 2024 01:08
@ghost
Copy link
Author

ghost commented Jan 9, 2024

e2e test with odbc code here https://github.com/snowflakedb/snowflake-odbc/tree/SNOW-910807-reuse-libsfc-qcc
The query context cache in the log looks good.

@ghost ghost merged commit 0e42539 into master Jan 9, 2024
24 checks passed
@ghost ghost deleted the SNOW-910807-qcc-reusable branch January 9, 2024 19:51
@github-actions github-actions bot locked and limited conversation to collaborators Jan 9, 2024
This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants