ClickHouse / ClickHouse/clickhouse-java

pojoSerDe was not correctly resolved.

Open
#2,685 1 comment 0 reactions 0 assignees View on GitHub
area:client-pojo-serde bug
Dominant language
Java
Stars
1.6k
Forks
636
Avg merge
2d 23h
Merged PRs (30d)
29

Description

## Description

### Steps to reproduce
1.client-v2 0.9.4
2.The JavaBean has two fields, cs and c_s, each with getter and setter methods. During debugging, the following error was found:

Image

When performing mapping, whether it's cs or c_s, it's always retrieved using getCs().

3.
### Error Log or Exception StackTrace

```
```

### Expected Behaviour

### Code Example

```java

```

### Configuration

#### Client Configuration
```java

```

#### Environment
* [ ] Cloud
* Client version:
* Language version:
* OS:

#### ClickHouse Server
* ClickHouse Server version:
* ClickHouse Server non-default settings, if any:
* `CREATE TABLE` statements for tables involved:
* Sample data for all these tables, use [clickhouse-obfuscator](https://github.com/ClickHouse/ClickHouse/blob/master/programs/obfuscator/Obfuscator.cpp#L42-L80) if necessary

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue with client-v2 0.9.4 using a JavaBean containing both cs and c_s fields, then trace the POJO mapping resolution for their getter and setter methods. Done means the two fields resolve to their distinct accessors rather than both using getCs(); the issue provides no test or source file to start from.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
api
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 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.