You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Recommendation: Keep open — fix needed
Two getters whose names differ only in _ (getCs, getC_s) get one match key, so a POJO insert writes one getter's value into both columns with no error. No open PR fixes it.
Category: Bug
Classification: impact: Data integrity · area: Data types & formats (POJO serialization)
Status on main: Reproduced on main — the insert stores the c_s value in both columns; queryAll with the class never calls setCs.
Breaking change: No — can be done without a break, if names that match today keep matching.
Workaround: Give Client.Builder.columnToMethodMatchingStrategy a DefaultColumnToMethodMatchingStrategy that keeps _ (the last two cases of the program).
Analysis: The default patterns at DefaultColumnToMethodMatchingStrategy.java:29 remove _ from method and column names, so getCs and getC_s both become cs. POJOSerDe.java:44-50 puts the getters and the setters into maps by that key with no collision check, so the method that Class.getMethods() returns last wins (here getC_s; the reporter saw getCs).
Activity
chernser commentedon Dec 9, 2025
thank you for reporting, @A-little-bit-of-data !
We will look into it.
polyglotAI-bot commentedon Nov 28, 2026
Recommendation: Keep open — fix needed
Two getters whose names differ only in
_(getCs,getC_s) get one match key, so a POJO insert writes one getter's value into both columns with no error. No open PR fixes it.main: Reproduced on main — the insert stores thec_svalue in both columns;queryAllwith the class never callssetCs._.Client.Builder.columnToMethodMatchingStrategyaDefaultColumnToMethodMatchingStrategythat keeps_(the last two cases of the program).Analysis: The default patterns at
DefaultColumnToMethodMatchingStrategy.java:29remove_from method and column names, sogetCsandgetC_sboth becomecs.POJOSerDe.java:44-50puts the getters and the setters into maps by that key with no collision check, so the method thatClass.getMethods()returns last wins (heregetC_s; the reporter sawgetCs).Reproduction: complete program and output
Output on
main(8480ca001), ClickHouse 26.11.2.4:Automated triage by Polyglot AI. A maintainer makes the final decision.