aws / aws/amazon-documentdb-jdbc-driver

[BUG] Investigate Error Handling for unhandled SQL query

Open
#499 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Java
Stars
17
Forks
16
PR merge metrics
No merged PRs in 30d

Description

## Environment
- DocumentDB JDBC driver version: 1.4.4
- DocumentDB server version: n/a
- OS: [e.g. MacOS Big Sur 11.5.1, Windows 10 64-bit] n/a
- BI Tool or client name: n/a
- BI Tool or client version: n/a
- Java version (if known): n/a

---

## Problem Description
1. Steps to reproduce:
- In `DocumentDbQueryMappingService` original exceptions can be hidden on call to `getExceptionMessages(e)` - for example, if it throws a null pointer exception, hiding the original exception. This should be adjusted to ensure that the original error is preserved, and other error handling should be investigated to look for similar issues.
3. Expected behaviour:
4. Actual behaviour:
5. Error message/stack trace:
6. Any other details that can be helpful:

---

## Screenshots
- If applicable, add screenshots to help explain your problem.

---

## JDBC log
- Add related JDBC log entries here.

Contributor guide

Open the contributing guide

Research direction

Locate DocumentDbQueryMappingService and inspect how getExceptionMessages(e) handles failures during SQL query processing. Trace the surrounding error-handling paths for similar cases. Done means the original exception is preserved and comparable handling issues are identified or addressed; the issue names no test file or specific test command.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, sql
Domain
backend, databases
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.