apache / apache/gravitino

[Improvement] In `HiveConnectorAdapter.java` field `propertyMetadata` is hidden

Open
#1,912 0 comments 0 reactions 0 assignees View on GitHub
improvement
Dominant language
Java
Stars
3.2k
Forks
935
Avg merge
1d 15h
Merged PRs (30d)
315

Description

### What would you like to be improved?

`propertyMetadata` is hidden in `buildInternalConnectorConfig`
```java
Map> catalogPropertyMeta =
Maps.uniqueIndex(
propertyMetadata.getCatalogPropertyMeta(),
propertyMetadata -> propertyMetadata.getName().replace("_", "."));
```

### How should we improve?

rename local variable?

Contributor guide

Open the contributing guide

Research direction

Open HiveConnectorAdapter.java and inspect buildInternalConnectorConfig. Compare the local catalogPropertyMeta name with the surrounding propertyMetadata field, then rename the local variable to remove the hiding while preserving behavior. Done means the local variable no longer obscures the field and the method remains unchanged in function.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend
Issue type
Refactor
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.