ClickHouse / ClickHouse/clickhouse-java
Add option to register custom class serializers
- Langage dominant
- Java
- Étoiles
- 1.6k
- Forks
- 636
- Merge moyen
- 2 j 23 h
- PR mergées (30 j)
- 29
Description
### Use case
Want to insert data structured as List> without having to covert every row to a dto object and provide getters.
This kind of structure typically comes from query resultset, csv parser, apache camel exchange etc. The map is of column name to value.
### Describe the solution you'd like
Be able to register a class serializer for Map with POJOSerializers which calls Map.get("column") with the appropriate cast.
Alternatively add built in serializer option that handles List> type
Or possibly have the register method detect get(column-name) methods as valid serialization methods
also allow java record getter methods (which don't start with "get") to act as serialization methods
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Start by reading POJOSerializers and its register method, then compare the requested Map.get("column") handling with support for Java record getter methods. The issue offers several alternative designs, so done first requires choosing and specifying one serialization behavior before implementation.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- java
- Domaine
- backend, databases
- Type d'issue
- Fonctionnalité
- Difficulté
- 5/5
- Temps estimé
- Plus d'une semaine
- Activité
- Calme
- Clarté
- À clarifier
- Accessibilité débutants
- 35/100