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

[AD-909] Enable SQL_ATTR_ROW_ARRAY_SIZE statement attribute greater than 1. #114

Merged
merged 9 commits into from
Sep 2, 2022

Conversation

birschick-bq
Copy link
Contributor

@birschick-bq birschick-bq commented Aug 30, 2022

Summary

[AD-909] Enable SQL_ATTR_ROW_ARRAY_SIZE statement attribute greater than 1.

Description

  • enable row array size other than 1.
  • Re-enable tests for handling case greater than 1.
  • Fix two discovered bugs (SQL state test, expected SQL state value)
  • Update performance executable to take user and password on command line to support DSN that doesn't include stored user and password.

Related Issue

https://bitquill.atlassian.net/browse/AD-876

Additional Reviewers

@affonsoBQ
@alexey-temnikov
@alinaliBQ
@andiem-bq
@birschick-bq
@mitchell-elholm
@RoyZhang2022

@github-actions
Copy link

github-actions bot commented Aug 30, 2022

Windows 2022 (x32) Build Unit Test Results

    1 files  ±0      1 suites  ±0   1m 3s ⏱️ -4s
273 tests +2  261 ✔️ +2  12 💤 ±0  0 ±0 
261 runs  +2  249 ✔️ +2  12 💤 ±0  0 ±0 

Results for commit 6a4a69f. ± Comparison against base commit b4482f3.

♻️ This comment has been updated with latest results.

@github-actions
Copy link

github-actions bot commented Aug 30, 2022

MacOS Big Sur 11 Debug Build Unit Test Results

    1 files  ±0      1 suites  ±0   37s ⏱️ -19s
270 tests +2  258 ✔️ +2  12 💤 ±0  0 ±0 
258 runs  +2  246 ✔️ +2  12 💤 ±0  0 ±0 

Results for commit 6a4a69f. ± Comparison against base commit b4482f3.

♻️ This comment has been updated with latest results.

@github-actions
Copy link

github-actions bot commented Aug 30, 2022

Windows 2022 (x64) Build Unit Test Results

    1 files  ±0      1 suites  ±0   1m 7s ⏱️ -3s
273 tests +2  261 ✔️ +2  12 💤 ±0  0 ±0 
261 runs  +2  249 ✔️ +2  12 💤 ±0  0 ±0 

Results for commit 6a4a69f. ± Comparison against base commit b4482f3.

♻️ This comment has been updated with latest results.

@github-actions
Copy link

github-actions bot commented Aug 30, 2022

Ubuntu 20.04 Debug Build Unit Test Results

    1 files  ±0      1 suites  ±0   27s ⏱️ +4s
273 tests +2  261 ✔️ +2  12 💤 ±0  0 ±0 
261 runs  +2  261 ✔️ +2    0 💤 ±0  0 ±0 

Results for commit 6a4a69f. ± Comparison against base commit b4482f3.

♻️ This comment has been updated with latest results.

src/odbc-test/src/api_robustness_test.cpp Show resolved Hide resolved
src/odbc-test/src/api_robustness_test.cpp Show resolved Hide resolved
src/odbc-test/src/cursor_binding_test.cpp Show resolved Hide resolved
src/odbc-test/src/odbc_test_suite.cpp Show resolved Hide resolved
src/odbc/src/query/data_query.cpp Show resolved Hide resolved
src/odbc/src/statement.cpp Show resolved Hide resolved
src/tests/performance/src/performance.cpp Show resolved Hide resolved
Copy link
Contributor

@affonsov affonsov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, just small nit to add a TODO and create a ticket. I will approve after those changes

@birschick-bq
Copy link
Contributor Author

birschick-bq commented Sep 1, 2022

lgtm, just small nit to add a TODO and create a ticket. I will approve after those changes

Create a ticket Performance test can be run with a ROW ARRAY SIZE greater than 1. and updated comment.

src/odbc-test/src/api_robustness_test.cpp Outdated Show resolved Hide resolved
src/odbc-test/src/cursor_binding_test.cpp Outdated Show resolved Hide resolved
src/odbc-test/include/odbc_test_suite.h Outdated Show resolved Hide resolved
src/odbc-test/src/cursor_binding_test.cpp Outdated Show resolved Hide resolved
src/odbc-test/src/odbc_test_suite.cpp Outdated Show resolved Hide resolved
src/tests/performance/src/performance.cpp Show resolved Hide resolved
@github-actions
Copy link

github-actions bot commented Sep 2, 2022

MacOS Big Sur 11 Debug Build Code Coverage Result

Code Coverage

Package Line Rate Branch Rate Complexity Health
src.odbc.include.documentdb.odbc 29% 37% 0
src.odbc.include.documentdb.odbc.app 20% 0% 0
src.odbc.include.documentdb.odbc.binary 0% 0% 0
src.odbc.include.documentdb.odbc.cache.query 0% 0% 0
src.odbc.include.documentdb.odbc.cluster 0% 0% 0
src.odbc.include.documentdb.odbc.common 13% 11% 0
src.odbc.include.documentdb.odbc.compute 0% 0% 0
src.odbc.include.documentdb.odbc.config 86% 50% 0
src.odbc.include.documentdb.odbc.diagnostic 86% 50% 0
src.odbc.include.documentdb.odbc.impl 0% 0% 0
src.odbc.include.documentdb.odbc.impl.binary 0% 0% 0
src.odbc.include.documentdb.odbc.impl.cache 0% 0% 0
src.odbc.include.documentdb.odbc.impl.cache.query 0% 0% 0
src.odbc.include.documentdb.odbc.impl.cache.query.continuous 0% 0% 0
src.odbc.include.documentdb.odbc.impl.compute 0% 0% 0
src.odbc.include.documentdb.odbc.impl.interop 0% 0% 0
src.odbc.include.documentdb.odbc.jni 48% 40% 0
src.odbc.include.documentdb.odbc.meta 47% 50% 0
src.odbc.include.documentdb.odbc.query 15% 0% 0
src.odbc.include.documentdb.odbc.sql 11% 0% 0
src.odbc.include.documentdb.odbc.streaming 0% 0% 0
src.odbc.os.linux.include.documentdb.odbc.common 0% 0% 0
src.odbc.os.linux.src.common 34% 35% 0
src.odbc.src 49% 28% 0
src.odbc.src.app 16% 3% 0
src.odbc.src.binary 0% 0% 0
src.odbc.src.cluster 2% 0% 0
src.odbc.src.common 22% 10% 0
src.odbc.src.config 70% 44% 0
src.odbc.src.diagnostic 44% 20% 0
src.odbc.src.impl 1% 0% 0
src.odbc.src.impl.binary 0% 0% 0
src.odbc.src.impl.cache 2% 0% 0
src.odbc.src.impl.cache.query 1% 0% 0
src.odbc.src.impl.cache.query.continuous 0% 0% 0
src.odbc.src.impl.cluster 2% 0% 0
src.odbc.src.impl.compute 0% 0% 0
src.odbc.src.impl.interop 1% 0% 0
src.odbc.src.jni 66% 26% 0
src.odbc.src.jni.os.linux 46% 23% 0
src.odbc.src.meta 89% 54% 0
src.odbc.src.query 63% 27% 0
src.odbc.src.sql 25% 9% 0
src.odbc.src.streaming 3% 0% 0
Summary 37% (5978 / 16228) 23% (9436 / 41553) 0

@github-actions
Copy link

github-actions bot commented Sep 2, 2022

Ubuntu 20.04 Debug Build Unit Test Results Check

Code Coverage

Package Line Rate Branch Rate Complexity Health
src.odbc.include.documentdb.odbc 41% 39% 0
src.odbc.include.documentdb.odbc.app 45% 0% 0
src.odbc.include.documentdb.odbc.binary 0% 0% 0
src.odbc.include.documentdb.odbc.cache.query 0% 0% 0
src.odbc.include.documentdb.odbc.common 62% 35% 0
src.odbc.include.documentdb.odbc.compute 0% 0% 0
src.odbc.include.documentdb.odbc.config 100% 50% 0
src.odbc.include.documentdb.odbc.diagnostic 82% 50% 0
src.odbc.include.documentdb.odbc.impl 0% 0% 0
src.odbc.include.documentdb.odbc.impl.binary 0% 0% 0
src.odbc.include.documentdb.odbc.impl.cache.query 0% 0% 0
src.odbc.include.documentdb.odbc.impl.cache.query.continuous 0% 0% 0
src.odbc.include.documentdb.odbc.impl.compute 0% 0% 0
src.odbc.include.documentdb.odbc.impl.interop 0% 0% 0
src.odbc.include.documentdb.odbc.jni 77% 39% 0
src.odbc.include.documentdb.odbc.meta 71% 50% 0
src.odbc.include.documentdb.odbc.query 20% 0% 0
src.odbc.include.documentdb.odbc.sql 50% 11% 0
src.odbc.include.documentdb.odbc.streaming 0% 0% 0
src.odbc.os.linux.include.documentdb.odbc.common 0% 0% 0
src.odbc.os.linux.src.common 34% 42% 0
src.odbc.src 46% 28% 0
src.odbc.src.app 25% 13% 0
src.odbc.src.binary 0% 0% 0
src.odbc.src.cluster 0% 0% 0
src.odbc.src.common 28% 18% 0
src.odbc.src.config 70% 45% 0
src.odbc.src.diagnostic 33% 15% 0
src.odbc.src.impl 0% 0% 0
src.odbc.src.impl.binary 0% 0% 0
src.odbc.src.impl.cache 0% 0% 0
src.odbc.src.impl.cache.query 0% 0% 0
src.odbc.src.impl.cache.query.continuous 0% 0% 0
src.odbc.src.impl.cluster 0% 0% 0
src.odbc.src.impl.compute 0% 0% 0
src.odbc.src.impl.interop 0% 0% 0
src.odbc.src.jni 63% 27% 0
src.odbc.src.jni.os.linux 38% 20% 0
src.odbc.src.meta 88% 54% 0
src.odbc.src.query 59% 27% 0
src.odbc.src.sql 18% 8% 0
src.odbc.src.streaming 0% 0% 0
Summary 37% (5909 / 15812) 25% (9061 / 36754) 0

@github-actions
Copy link

github-actions bot commented Sep 2, 2022

Windows 2022 (x32) Debug Build Unit Test Results Check

Code Coverage

Package Line Rate Branch Rate Complexity Health
D:\a\amazon-documentdb-odbc-driver\amazon-documentdb-odbc-driver\build\odbc\bin\Debug\documentdb.odbc.dll 33% 0% 0
Summary 33% (6923 / 20903) 0% (0 / 0) 0

@birschick-bq birschick-bq merged commit fa77c09 into develop Sep 2, 2022
@birschick-bq birschick-bq deleted the birschick-bq/ad-876/impl-row-array_size branch September 2, 2022 21:02
affonsov pushed a commit that referenced this pull request Nov 16, 2022
…han 1. (#114)

* [AD-909] Implement row_array_size statement attribute. Fix discovered bugs.

* [AD-909] Attempt to resolve MacOS test issues.

* [AD-909] Attempt to resolve MacOS test issues.

* [AD-909] Attempt to resolve MacOS test issues.

* [AD-909] Fix compile error.

* [AD-909] Clean-up code.

* [AD-876] Code review improvement to add ticket for performance tests.

* [AD-876] Code review improvements comments/data types/documentation.

* Update src/odbc-test/src/api_robustness_test.cpp

Co-authored-by: Alina (Xi) Li <[email protected]>

Co-authored-by: Alina (Xi) Li <[email protected]>
affonsov pushed a commit that referenced this pull request Nov 17, 2022
…han 1. (#114)

* [AD-909] Implement row_array_size statement attribute. Fix discovered bugs.

* [AD-909] Attempt to resolve MacOS test issues.

* [AD-909] Attempt to resolve MacOS test issues.

* [AD-909] Attempt to resolve MacOS test issues.

* [AD-909] Fix compile error.

* [AD-909] Clean-up code.

* [AD-876] Code review improvement to add ticket for performance tests.

* [AD-876] Code review improvements comments/data types/documentation.

* Update src/odbc-test/src/api_robustness_test.cpp

Co-authored-by: Alina (Xi) Li <[email protected]>

Co-authored-by: Alina (Xi) Li <[email protected]>
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.

3 participants