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

[GAC-43] Disable implementation for ODBC API #13

Draft
wants to merge 1 commit into
base: GAC-odbc-driver
Choose a base branch
from

Conversation

alinaliBQ
Copy link

Rationale for this change

Disable exisiting ODBC API implementation, so it can be replaced by a different client.

What changes are included in this PR?

Define macro for unsupported ODBC API

  • When an unimplemented ODBC API is called, a log would be generated as warning. This will help debug process and let us know which unimplemented API has been called.

Disable ODBC APIs at entry level

  • Use ifdef to disable code at entry level. The disabled code should be replaced with calls to Dremio's flightsql-odbc classes in later PRs.
  • Disable header includes for Timestream-specific classes

Are these changes tested?

Minimal manual testing has been done. The driver can still build successfully.
As we develop more ODBC APIs, we will add integration tests for them.

Are there any user-facing changes?

No.

Define macro for unsupported ODBC API
* When an unimplemented ODBC API is called, a log would be generated as warning. This will help debug process and let us know which unimplemented API has been called.

Disable ODBC APIs at entry level
* Use `ifdef` to disable code at entry level. The disabled code should be replaced with calls to Dremio's `flightsql-odbc` classes in later PRs.
* Disable header includes for Timestream-specific classes
Copy link

github-actions bot commented Dec 18, 2023

Ubuntu 20.04 Build Unit Test Results

  1 files  ±0    1 suites  ±0   0s ⏱️ ±0s
73 tests ±0  72 ✔️ ±0  1 💤 ±0  0 ±0 
72 runs  ±0  72 ✔️ ±0  0 💤 ±0  0 ±0 

Results for commit f3a1032. ± Comparison against base commit 59a015f.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Dec 18, 2023

Ubuntu 20.04 Build Integration Test Results

0 tests  ±0   0 ✔️ ±0   0s ⏱️ ±0s
0 suites ±0   0 💤 ±0 
0 files   ±0   0 ±0 

Results for commit f3a1032. ± Comparison against base commit 59a015f.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Dec 19, 2023

Ubuntu 20.04 Debug Build Unit Test Results

  1 files  ±0    1 suites  ±0   1s ⏱️ ±0s
73 tests ±0  72 ✔️ ±0  1 💤 ±0  0 ±0 
72 runs  ±0  72 ✔️ ±0  0 💤 ±0  0 ±0 

Results for commit f3a1032. ± Comparison against base commit 59a015f.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Dec 19, 2023

Ubuntu 20.04 Debug Build Integration Test Results

0 tests  ±0   0 ✔️ ±0   0s ⏱️ ±0s
0 suites ±0   0 💤 ±0 
0 files   ±0   0 ±0 

Results for commit f3a1032. ± Comparison against base commit 59a015f.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Dec 19, 2023

Windows 2022 (x32) Build Unit Test Results

  1 files  ±0    1 suites  ±0   1s ⏱️ ±0s
74 tests ±0  73 ✔️ ±0  1 💤 ±0  0 ±0 
73 runs  ±0  72 ✔️ ±0  1 💤 ±0  0 ±0 

Results for commit f3a1032. ± Comparison against base commit 59a015f.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Dec 19, 2023

Windows 2022 (x32) Build Integration Test Results

0 tests  ±0   0 ✔️ ±0   0s ⏱️ ±0s
0 suites ±0   0 💤 ±0 
0 files   ±0   0 ±0 

Results for commit f3a1032. ± Comparison against base commit 59a015f.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Dec 19, 2023

Windows 2022 (x64) Build Unit Test Results

  1 files  ±0    1 suites  ±0   0s ⏱️ -1s
74 tests ±0  73 ✔️ ±0  1 💤 ±0  0 ±0 
73 runs  ±0  72 ✔️ ±0  1 💤 ±0  0 ±0 

Results for commit f3a1032. ± Comparison against base commit 59a015f.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Dec 19, 2023

Windows 2022 (x64) Build Integration Test Results

0 tests  ±0   0 ✔️ ±0   0s ⏱️ ±0s
0 suites ±0   0 💤 ±0 
0 files   ±0   0 ±0 

Results for commit f3a1032. ± Comparison against base commit 59a015f.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Dec 19, 2023

MacOS Big Sur 11 Debug Build Unit Test Results

  1 files  ±0    1 suites  ±0   9s ⏱️ -1s
73 tests ±0  72 ✔️ ±0  1 💤 ±0  0 ±0 
72 runs  ±0  71 ✔️ ±0  1 💤 ±0  0 ±0 

Results for commit f3a1032. ± Comparison against base commit 59a015f.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Dec 19, 2023

MacOS Big Sur 11 Debug Build Integration Test Results

0 files  ±0  0 suites  ±0   0s ⏱️ ±0s
0 tests ±0  0 ✔️ ±0  0 💤 ±0  0 ±0 

Results for commit f3a1032. ± Comparison against base commit 59a015f.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Dec 19, 2023

MacOS Big Sur 11 Build Unit Test Results

  1 files  ±0    1 suites  ±0   7s ⏱️ ±0s
73 tests ±0  72 ✔️ ±0  1 💤 ±0  0 ±0 
72 runs  ±0  71 ✔️ ±0  1 💤 ±0  0 ±0 

Results for commit f3a1032. ± Comparison against base commit 59a015f.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Dec 19, 2023

MacOS Big Sur 11 Build Integration Test Results

0 files  ±0  0 suites  ±0   0s ⏱️ ±0s
0 tests ±0  0 ✔️ ±0  0 💤 ±0  0 ±0 

Results for commit f3a1032. ± Comparison against base commit 59a015f.

♻️ This comment has been updated with latest results.

Copy link

Ubuntu 20.04 Debug Build Test Results Check

Code Coverage

Package Line Rate Branch Rate Complexity Health
cpp.src.flightsql_odbc.amazon-timestream-odbc-driver.src.aws-sdk-cpp.install.include.aws.core 26% 0% 0
cpp.src.flightsql_odbc.amazon-timestream-odbc-driver.src.aws-sdk-cpp.install.include.aws.core.auth 100% 67% 0
cpp.src.flightsql_odbc.amazon-timestream-odbc-driver.src.aws-sdk-cpp.install.include.aws.core.client 20% 38% 0
cpp.src.flightsql_odbc.amazon-timestream-odbc-driver.src.aws-sdk-cpp.install.include.aws.core.config 67% 0% 0
cpp.src.flightsql_odbc.amazon-timestream-odbc-driver.src.aws-sdk-cpp.install.include.aws.core.endpoint 0% 0% 0
cpp.src.flightsql_odbc.amazon-timestream-odbc-driver.src.aws-sdk-cpp.install.include.aws.core.http 100% 0% 0
cpp.src.flightsql_odbc.amazon-timestream-odbc-driver.src.aws-sdk-cpp.install.include.aws.core.utils 100% 50% 0
cpp.src.flightsql_odbc.amazon-timestream-odbc-driver.src.aws-sdk-cpp.install.include.aws.core.utils.json 100% 0% 0
cpp.src.flightsql_odbc.amazon-timestream-odbc-driver.src.aws-sdk-cpp.install.include.aws.core.utils.memory 67% 38% 0
cpp.src.flightsql_odbc.amazon-timestream-odbc-driver.src.aws-sdk-cpp.install.include.aws.core.utils.memory.stl 100% 50% 0
cpp.src.flightsql_odbc.amazon-timestream-odbc-driver.src.aws-sdk-cpp.install.include.aws.crt 45% 25% 0
cpp.src.flightsql_odbc.amazon-timestream-odbc-driver.src.aws-sdk-cpp.install.include.aws.crt.endpoints 0% 0% 0
cpp.src.flightsql_odbc.amazon-timestream-odbc-driver.src.aws-sdk-cpp.install.include.aws.sts 7% 0% 0
cpp.src.flightsql_odbc.amazon-timestream-odbc-driver.src.aws-sdk-cpp.install.include.aws.sts.model 100% 0% 0
cpp.src.flightsql_odbc.amazon-timestream-odbc-driver.src.aws-sdk-cpp.install.include.aws.timestream-query 11% 0% 0
cpp.src.flightsql_odbc.amazon-timestream-odbc-driver.src.aws-sdk-cpp.install.include.aws.timestream-query.model 48% 0% 0
cpp.src.flightsql_odbc.amazon-timestream-odbc-driver.src.odbc.include.ignite.common.include.common 0% 0% 0
cpp.src.flightsql_odbc.amazon-timestream-odbc-driver.src.odbc.include.ignite.odbc 100% 0% 0
cpp.src.flightsql_odbc.amazon-timestream-odbc-driver.src.odbc.include.ignite.odbc.config 67% 0% 0
cpp.src.flightsql_odbc.amazon-timestream-odbc-driver.src.odbc.include.ignite.odbc.diagnostic 100% 0% 0
cpp.src.flightsql_odbc.amazon-timestream-odbc-driver.src.odbc.include.timestream.odbc 33% 11% 0
cpp.src.flightsql_odbc.amazon-timestream-odbc-driver.src.odbc.include.timestream.odbc.app 38% 0% 0
cpp.src.flightsql_odbc.amazon-timestream-odbc-driver.src.odbc.include.timestream.odbc.authentication 100% 50% 0
cpp.src.flightsql_odbc.amazon-timestream-odbc-driver.src.odbc.include.timestream.odbc.config 0% 0% 0
cpp.src.flightsql_odbc.amazon-timestream-odbc-driver.src.odbc.include.timestream.odbc.diagnostic 56% 50% 0
cpp.src.flightsql_odbc.amazon-timestream-odbc-driver.src.odbc.include.timestream.odbc.meta 18% 9% 0
cpp.src.flightsql_odbc.amazon-timestream-odbc-driver.src.odbc.include.timestream.odbc.query 85% 50% 0
cpp.src.flightsql_odbc.amazon-timestream-odbc-driver.src.odbc.os.ignite.common.os.linux.src.common 24% 42% 0
cpp.src.flightsql_odbc.amazon-timestream-odbc-driver.src.odbc.src 23% 11% 0
cpp.src.flightsql_odbc.amazon-timestream-odbc-driver.src.odbc.src.app 7% 6% 0
cpp.src.flightsql_odbc.amazon-timestream-odbc-driver.src.odbc.src.authentication 93% 48% 0
cpp.src.flightsql_odbc.amazon-timestream-odbc-driver.src.odbc.src.config 64% 34% 0
cpp.src.flightsql_odbc.amazon-timestream-odbc-driver.src.odbc.src.diagnostic 23% 11% 0
cpp.src.flightsql_odbc.amazon-timestream-odbc-driver.src.odbc.src.ignite.common.src 0% 0% 0
cpp.src.flightsql_odbc.amazon-timestream-odbc-driver.src.odbc.src.ignite.common.src.common 0% 0% 0
cpp.src.flightsql_odbc.amazon-timestream-odbc-driver.src.odbc.src.meta 51% 16% 0
cpp.src.flightsql_odbc.amazon-timestream-odbc-driver.src.odbc.src.query 9% 6% 0
cpp.src.flightsql_odbc.amazon-timestream-odbc-driver.src.tests.integration-test.include 0% 0% 0
cpp.src.flightsql_odbc.amazon-timestream-odbc-driver.src.tests.integration-test.src 0% 0% 0
Summary 14% (2326 / 16489) 5% (4449 / 93701) 0

Copy link

Windows 2022 (x64) Debug Build Code Coverage Test Results Check

Code Coverage

Package Line Rate Branch Rate Complexity Health
D:\a\arrow\arrow\cpp\src\flightsql_odbc\amazon-timestream-odbc-driver\build\odbc\bin\Debug\timestream-odbc-unit-tests.exe 29% 0% 0
Summary 29% (2367 / 8029) 0% (0 / 0) 0

Copy link

MacOS Big Sur 11 Debug Build Code Coverage Unit and Integration Test Result

Code Coverage

Package Line Rate Branch Rate Complexity Health
arrow.cpp.src.flightsql_odbc.amazon-timestream-odbc-driver.src.aws-sdk-cpp.install.include.aws.core 100% 50% 0
arrow.cpp.src.flightsql_odbc.amazon-timestream-odbc-driver.src.aws-sdk-cpp.install.include.aws.core.auth 100% 83% 0
arrow.cpp.src.flightsql_odbc.amazon-timestream-odbc-driver.src.aws-sdk-cpp.install.include.aws.core.client 54% 50% 0
arrow.cpp.src.flightsql_odbc.amazon-timestream-odbc-driver.src.aws-sdk-cpp.install.include.aws.core.config 67% 0% 0
arrow.cpp.src.flightsql_odbc.amazon-timestream-odbc-driver.src.aws-sdk-cpp.install.include.aws.core.endpoint 0% 0% 0
arrow.cpp.src.flightsql_odbc.amazon-timestream-odbc-driver.src.aws-sdk-cpp.install.include.aws.core.http 100% 0% 0
arrow.cpp.src.flightsql_odbc.amazon-timestream-odbc-driver.src.aws-sdk-cpp.install.include.aws.core.utils 100% 50% 0
arrow.cpp.src.flightsql_odbc.amazon-timestream-odbc-driver.src.aws-sdk-cpp.install.include.aws.core.utils.json 100% 0% 0
arrow.cpp.src.flightsql_odbc.amazon-timestream-odbc-driver.src.aws-sdk-cpp.install.include.aws.core.utils.memory 60% 38% 0
arrow.cpp.src.flightsql_odbc.amazon-timestream-odbc-driver.src.aws-sdk-cpp.install.include.aws.core.utils.memory.stl 100% 0% 0
arrow.cpp.src.flightsql_odbc.amazon-timestream-odbc-driver.src.aws-sdk-cpp.install.include.aws.core.utils.threading 0% 0% 0
arrow.cpp.src.flightsql_odbc.amazon-timestream-odbc-driver.src.aws-sdk-cpp.install.include.aws.crt 100% 100% 0
arrow.cpp.src.flightsql_odbc.amazon-timestream-odbc-driver.src.aws-sdk-cpp.install.include.aws.crt.endpoints 0% 0% 0
arrow.cpp.src.flightsql_odbc.amazon-timestream-odbc-driver.src.aws-sdk-cpp.install.include.aws.sts 14% 0% 0
arrow.cpp.src.flightsql_odbc.amazon-timestream-odbc-driver.src.aws-sdk-cpp.install.include.aws.sts.model 100% 0% 0
arrow.cpp.src.flightsql_odbc.amazon-timestream-odbc-driver.src.aws-sdk-cpp.install.include.aws.timestream-query 100% 0% 0
arrow.cpp.src.flightsql_odbc.amazon-timestream-odbc-driver.src.aws-sdk-cpp.install.include.aws.timestream-query.model 50% 38% 0
arrow.cpp.src.flightsql_odbc.amazon-timestream-odbc-driver.src.odbc.include.ignite.common.include.common 2% 1% 0
arrow.cpp.src.flightsql_odbc.amazon-timestream-odbc-driver.src.odbc.include.ignite.odbc 100% 0% 0
arrow.cpp.src.flightsql_odbc.amazon-timestream-odbc-driver.src.odbc.include.ignite.odbc.config 100% 0% 0
arrow.cpp.src.flightsql_odbc.amazon-timestream-odbc-driver.src.odbc.include.ignite.odbc.diagnostic 100% 0% 0
arrow.cpp.src.flightsql_odbc.amazon-timestream-odbc-driver.src.odbc.include.timestream.odbc 32% 13% 0
arrow.cpp.src.flightsql_odbc.amazon-timestream-odbc-driver.src.odbc.include.timestream.odbc.app 38% 0% 0
arrow.cpp.src.flightsql_odbc.amazon-timestream-odbc-driver.src.odbc.include.timestream.odbc.authentication 100% 50% 0
arrow.cpp.src.flightsql_odbc.amazon-timestream-odbc-driver.src.odbc.include.timestream.odbc.config 100% 50% 0
arrow.cpp.src.flightsql_odbc.amazon-timestream-odbc-driver.src.odbc.include.timestream.odbc.diagnostic 60% 50% 0
arrow.cpp.src.flightsql_odbc.amazon-timestream-odbc-driver.src.odbc.include.timestream.odbc.meta 25% 9% 0
arrow.cpp.src.flightsql_odbc.amazon-timestream-odbc-driver.src.odbc.include.timestream.odbc.query 85% 0% 0
arrow.cpp.src.flightsql_odbc.amazon-timestream-odbc-driver.src.odbc.os.ignite.common.os.linux.src.common 25% 35% 0
arrow.cpp.src.flightsql_odbc.amazon-timestream-odbc-driver.src.odbc.src 23% 11% 0
arrow.cpp.src.flightsql_odbc.amazon-timestream-odbc-driver.src.odbc.src.app 9% 3% 0
arrow.cpp.src.flightsql_odbc.amazon-timestream-odbc-driver.src.odbc.src.authentication 96% 49% 0
arrow.cpp.src.flightsql_odbc.amazon-timestream-odbc-driver.src.odbc.src.config 63% 33% 0
arrow.cpp.src.flightsql_odbc.amazon-timestream-odbc-driver.src.odbc.src.diagnostic 40% 13% 0
arrow.cpp.src.flightsql_odbc.amazon-timestream-odbc-driver.src.odbc.src.ignite.common.src 0% 0% 0
arrow.cpp.src.flightsql_odbc.amazon-timestream-odbc-driver.src.odbc.src.ignite.common.src.common 0% 0% 0
arrow.cpp.src.flightsql_odbc.amazon-timestream-odbc-driver.src.odbc.src.meta 51% 14% 0
arrow.cpp.src.flightsql_odbc.amazon-timestream-odbc-driver.src.odbc.src.query 12% 7% 0
Summary 27% (2698 / 10162) 11% (4813 / 45048) 0

@alinaliBQ alinaliBQ marked this pull request as ready for review December 19, 2023 17:41
@alinaliBQ alinaliBQ marked this pull request as draft December 20, 2023 19:58
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.

2 participants