Title: GH-734: Improve CompositeJdbcConsumer error handling and add unit tests by Odin-BN · Pull Request #778 · apache/arrow-java · GitHub
Open Graph Title: GH-734: Improve CompositeJdbcConsumer error handling and add unit tests by Odin-BN · Pull Request #778 · apache/arrow-java
X Title: GH-734: Improve CompositeJdbcConsumer error handling and add unit tests by Odin-BN · Pull Request #778 · apache/arrow-java
Description: What's Changed This PR improves error handling in 'CompositeJdbConsumer' by safely handling null 'ValueVector' and 'ResultSet' values to prevent 'NullPointerException', and return the intended 'JdbcConsumerException'. How was this tested? Added two unit tests in 'CompositeJdbcConsumerTest': 'testHandlesJdbcConsumerExceptionGracefully' verifies 'ArrowType' is captured if vector is valid, and returns the 'JdbcConsumerException' even though 'ResultSet' is null (which gave another NullPointerException previously). 'testJdbcConsumerExceptionWhenArrowTypeIsNull' verifies 'ArrowType' is 'null' and returns the 'JdbcConsumerException'. All tests pass after the change. Closes #734
Open Graph Description: What's Changed This PR improves error handling in 'CompositeJdbConsumer' by safely handling null 'ValueVector' and 'ResultSet' values to prevent 'NullPointerExceptio...
X Description: What's Changed This PR improves error handling in 'CompositeJdbConsumer' by safely handling null 'ValueVector' and 'ResultSet' values to prev...
Opengraph URL: https://github.com/apache/arrow-java/pull/778
X: @github
Domain: patch-diff.githubusercontent.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:ffcfd06d-428a-d9d5-c20f-0434fc2e103e |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | A830:11CABF:158491B:1BB5E4E:699250CE |
| html-safe-nonce | b8ed68e48907c63d4a6ebcf9e9a0cb67b78cda4197643b0a442d7aceb2429fea |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBODMwOjExQ0FCRjoxNTg0OTFCOjFCQjVFNEU6Njk5MjUwQ0UiLCJ2aXNpdG9yX2lkIjoiODU1NTYxODUyNjYzMDY2MjM1MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 1208686c5575b9c342aaa589331515c0997997b1a4823245ff9cd6e99a1d0cc6 |
| hovercard-subject-tag | pull_request:2555265015 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/apache/arrow-java/pull/778/files |
| twitter:image | https://avatars.githubusercontent.com/u/193305980?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/193305980?s=400&v=4 |
| og:image:alt | What's Changed This PR improves error handling in 'CompositeJdbConsumer' by safely handling null 'ValueVector' and 'ResultSet' values to prevent 'NullPointerExceptio... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/apache/arrow-java git https://github.com/apache/arrow-java.git |
| octolytics-dimension-user_id | 47359 |
| octolytics-dimension-user_login | apache |
| octolytics-dimension-repository_id | 893682219 |
| octolytics-dimension-repository_nwo | apache/arrow-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 893682219 |
| octolytics-dimension-repository_network_root_nwo | apache/arrow-java |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 848bc6032dcc93a9a7301dcc3f379a72ba13b96e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width