[client-v2, jdbc-v2] Add MultiPoint type support
Mantenedores costumam responder em até 1 dia
@polyglotAI-bot já está trabalhando nisso.
Desde 13/8/2026.
Avaliação
Esta issue ainda não foi avaliada.
Descrição
Follow-up to #2577. At the time it was noted that ClickHouse has no MultiPoint type:
ClickHouse doesn't support
GeometryCollection,MultiPoint. Here is link for supported types https://clickhouse.com/docs/sql-reference/data-types/geoThere is a
Ringwhat may be aMultiPoint.Originally posted by @chernser in #2577
That has since changed on the server side. MultiPoint is now a first-class geo type documented on that same page, defined as Array(Point), and Geometry is documented as a common type for all the geo types listed there.
Note on versions: this is a heads-up, not a regression report. MultiPoint is not in 26.7 or earlier — I'm testing against a master/head build (26.8.1.146), so it should land in the next release. Filing now so client support can be in place before then.
The client already ships Geometry support (#2815) for CH 25.11+, where Geometry became Variant(Point, Ring, LineString, MultiLineString, Polygon, MultiPolygon). MultiPoint appears to be the one geo type left out of both the concrete-type path and that variant list.
GeometryCollection remains correctly out of scope — Geometry is the ClickHouse equivalent.
Reproduction
CREATE TABLE geo_multipoint (mp MultiPoint) ENGINE = Memory();
INSERT INTO geo_multipoint VALUES([(0, 0), (10, 0), (10, 10), (0, 10)]);
SELECT mp, toTypeName(mp) FROM geo_multipoint;
-- via WKT, and through the unified type
SELECT readWKT('MULTIPOINT(0 0, 10 0, 10 10)') AS mp, toTypeName(mp);
CREATE TABLE geo_any (g Geometry) ENGINE = Memory();
INSERT INTO geo_any SELECT readWKT('MULTIPOINT(0 0, 10 0, 10 10)');
SELECT g, toTypeName(g) FROM geo_any;
Expected: MultiPoint is recognised as a geo column type and returned in the same geometry-aware representation the other geo types got after #2581, and it round-trips on insert.
Actual: reading a MultiPoint column via jdbc-v2 gives:
Caused by: java.lang.IllegalArgumentException: Unsupported data type: MultiPoint
Proposed changes
- Add
MultiPointto the ClickHouse data-type enum / type parser. - Read path: map
MultiPointto the same geometry representation used forRing/LineString(both are alsoArray(Point)). - Write path: support inserting
MultiPoint, including viareadWKT/ WKB round-trip. - JDBC metadata:
getColumnType/getColumnTypeName/getColumnClassNameforMultiPointcolumns, so v2 doesn't NPE the way the types in #2711 did. - Extend
Geometryvariant handling if the server includesMultiPointin it.
Environment
- clickhouse-java: 0.9.8
- Driver: jdbc-v2 / client-v2
- ClickHouse server: 26.8.1.146 (master/head build — not a stable release)
- Linguagem predominante
- Java
- Estrelas
- 1.6k
- Forks
- 640
- Merge médio
- 1d 12h
- PRs com merge (30d)
- 39
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de ClickHouse/clickhouse-java
-
bug jdbc-v2
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 70/100
ClickHouse/clickhouse-java#3214 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
ClickHouse/clickhouse-java#3212 ·
Mantenedores costumam responder em até 1 dia
-
bug client-api-v2 test
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 92/100
ClickHouse/clickhouse-java#3076 ·
Mantenedores costumam responder em até 1 dia
-
area:sql-parser bug client-v1
Dificuldade 1/5 1-3 horas Facilidade para iniciantes 92/100
ClickHouse/clickhouse-java#3066 ·
Mantenedores costumam responder em até 1 dia
-
bug client-api-v2 jdbc-v2
Dificuldade 1/5 1-3 horas Facilidade para iniciantes 78/100
ClickHouse/clickhouse-java#2957 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
Todas as issues de ClickHouse/clickhouse-java
Issues semelhantes
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
apache/rocketmq-dashboard#7250 ·
Mantenedores costumam responder em até 3 dias
-
Bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 67/100
ignatov/intellij-erlang#1093 ·
-
HttpMaxFrameSizeTest.sendOversizedMessageTest() passes silently when maxFrameSize is not enforcedAberta
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 90/100
apache/activemq#2706 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
federicoiosue/Omni-Notes#1032 ·
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
unitycatalog/unitycatalog#2025 ·
Mantenedores costumam responder em até 4 dias