apache / apache/iotdb

Replace the usage of the "instanceof" operator by a catch block.

Open
#7,014 1 comment 0 reactions 0 assignees View on GitHub
Easy-Fixed
Dominant language
Java
Stars
6.4k
Forks
1.2k
Avg merge
1d 23h
Merged PRs (30d)
115

Description

Code Path:server/src/main/java/org/apache/iotdb/db/mpp/plan/analyze/AnalyzeVisitor.java
1660631040808
Multiple catch blocks of the appropriate type should be used instead of catching a general exception, and then testing on the type.

Contributor guide

Open the contributing guide

Research direction

Start in server/src/main/java/org/apache/iotdb/db/mpp/plan/analyze/AnalyzeVisitor.java and inspect the general catch blocks that test exception types with instanceof. Replace that pattern with separate catches for the appropriate exception types, then verify the server's existing tests still pass.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
databases
Issue type
Refactor
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.