Skip to content

Add MultiPoint data type - #109951

Merged
alexey-milovidov merged 26 commits into
ClickHouse:masterfrom
davidmenggx:multipoint-type
Jul 26, 2026
Merged

alexey-milovidov merged 26 commits into
ClickHouse:masterfrom
davidmenggx:multipoint-type

Conversation

@davidmenggx

@davidmenggx davidmenggx commented Jul 10, 2026 •

Copy link
Copy Markdown
Contributor

Added the MultiPoint geo data type, stored as Array(Point), and included it in the Geometry type. Geo functions (readWKT/readWKB, wkt, wkb, svg, area, perimeter, polygons*, MVT encoding, GeoJSON input/output, Arrow/Parquet geo metadata) support it.

MySQL integration (the mysql table function/engine and the MySQL database engine) maps the concrete MULTIPOINT column type to MultiPoint, and a generic GEOMETRY column holding a MULTIPOINT value reads back through the Geometry type's MultiPoint alternative (previously both threw or fell back to String; only GEOMETRYCOLLECTION remains unrepresentable).

To keep backward compatibility, Geometry now builds its Variant with a fixed discriminator order (matching the previous sorted-by-name order) and MultiPoint is appended at the end, so discriminators persisted in existing data keep their meaning. This is covered by the test 04511_geometry_discriminators_compatibility, which reads hardcoded Native and RowBinary blobs produced by a pre-MultiPoint server.

Closes: #109852

Changelog category (leave one):

  • New Feature

Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):

Added the MultiPoint geo data type, stored as Array(Point), and included it in the Geometry type.

Version info

  • Merged into: 26.8.1.146 (included in 26.8 and later)

`MultiPoint` is stored as `Array(Point)` and added to the `Geometry`
Variant. Geo functions do not support it yet and throw `NOT_IMPLEMENTED`.
Since `Variant` sorts alternatives by name, the `Geometry` discriminators
are renumbered, which affects backwards compatibility.

Resolves ClickHouse#109852
@davidmenggx

Copy link
Copy Markdown
Contributor Author

@alexey-milovidov Let me know how this looks, two things:

  1. Not implemented yet: WKT/WKB parsing via readWKT/readWKB, the wkt/wkb/svg/area*/perimeter*/polygons* functions, MVT encoding, and GeoJSON input/output. I can implement these in this PR if preferred, or open a follow-up issue to track them.
  2. Variant sorts alternatives by name, so adding MultiPoint to Geometry renumbers the discriminators. This causes backward compatibility issues. Maybe we can make the Geometry serialization record the ordered list of variant type names in its serialization prefix and resolve discriminators against that recorded list rather than the current canonical order, the same way Dynamic already persists its variant structure per part?

@alexey-milovidov

Copy link
Copy Markdown
Member

I can implement these in this PR if preferred, or open a follow-up issue to track them.

Let's add all in this PR.

@alexey-milovidov alexey-milovidov added the can be tested Allows running workflows for external contributors label Jul 10, 2026
@clickhouse-gh

clickhouse-gh Bot commented Jul 10, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [d31235b]

Summary: ✅


AI Review

Summary

This PR adds the MultiPoint geo type and threads it through Geometry, WKT/WKB, GeoJSON, GeoParquet, MySQL, MVT, and the geo function set, with the important Geometry discriminator compatibility fix in place. The main feature work is broadly there, but two user-visible behavior gaps still remain in the current code: name-stripping paths still silently reinterpret MultiPoint as Ring, and the updated flipCoordinates docs still promise Geometry type preservation that the implementation does not provide.

Findings

⚠️ Majors

  • [src/Functions/geometryConverters.h:533, src/Functions/geometry.h:162] [dismissed by author -- https://github.com/Add MultiPoint data type #109951#discussion_r3622013243, https://github.com/Add MultiPoint data type #109951#discussion_r3622118870] MultiPoint is still only recognized while the custom geo name survives. Once expression analysis strips that name, unnamed Array(Tuple(Float64, Float64)) still falls back to Ring, so generic paths like wkt, svg, polygonConvexHull, h3PolygonToCells*, area*, and perimeter* can silently reinterpret a supported MultiPoint value as an areal ring instead of preserving the geometry kind or rejecting the ambiguous form. This ambiguity predated the PR, but adding MultiPoint turns it into a new wrong-result surface for the feature being added here. Suggested fix: reject the ambiguous unnamed structural form in the shared helpers, analogous to geometryIntersect, or preserve the custom geo name across these dispatch points.
  • [src/Functions/flipCoordinates.cpp:161] [dismissed by author -- https://github.com/Add MultiPoint data type #109951#discussion_r3622118876] The updated docs still say flipCoordinates supports Geometry and that "the return type matches the input type", but the implementation still relies on the default FunctionVariantAdaptor path, which returns a plain Variant(...) when the alternatives have different result types. A Geometry input therefore loses the Geometry wrapper and fixed discriminator order, so downstream code that explicitly requires Geometry still rejects the result. This was already true before MultiPoint, but the changed doc line still restates a false contract in the current PR. Suggested fix: preserve the Geometry wrapper explicitly here, or narrow the docs/tests to the concrete geo aliases.
Final Verdict

Status: ⚠️ Request changes

@clickhouse-gh clickhouse-gh Bot added the pr-feature Pull request with new product feature label Jul 10, 2026
Comment thread src/DataTypes/DataTypeCustomGeo.cpp Resolved
@clickhouse-gh clickhouse-gh Bot added the manual approve Manual approve required to run CI label Jul 11, 2026
@davidmenggx

Copy link
Copy Markdown
Contributor Author

@alexey-milovidov Everything should be implemented now. For backward compatibility MultiPoint is appended to the end of the Geometry variant

@davidmenggx
davidmenggx marked this pull request as ready for review July 13, 2026 15:41
@alexey-milovidov alexey-milovidov added can be tested Allows running workflows for external contributors and removed can be tested Allows running workflows for external contributors labels Jul 19, 2026
davidmenggx and others added 2 commits July 19, 2026 15:16
…sentable

The `MultiPoint` type is now a first-class `Geometry` type, so `GeoJSON`
reading stores it in the `MultiPoint` variant and only `GeometryCollection`
stays unrepresentable. The hand-maintained `docs/en/interfaces/formats/GeoJSON.md`
already reflected this, but the in-code structured documentation in
`GeoJSONRowInputFormat.cpp` (and the regenerated `docs/reference/formats/GeoJSON.mdx`)
still described `MultiPoint` as unrepresentable. Update both so the docs match
the behavior tested by `04003_geojson_input_format`, `04490_geojson_input_geometry_collection`,
and `04510_geojson_multipoint`.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@alexey-milovidov alexey-milovidov self-assigned this Jul 20, 2026

@alexey-milovidov alexey-milovidov left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Approved.

@alexey-milovidov alexey-milovidov added the pr-autogenerated-docs PR that regenerates docs artifacts from source; exempt from the autogenerated-region edit guard label Jul 20, 2026
…erical}

`checkGeometryIntersectArgument` did not allow the named `MultiPoint` type, so a concrete
`MultiPoint` argument threw `ILLEGAL_TYPE_OF_ARGUMENT`, and through the `Geometry` type the
Variant adaptor treated the `MultiPoint` alternative as incompatible and silently inserted the
default result for those rows. Allow `MultiPoint` (the dispatch in `callOnGeometryDataType`
distinguishes it by the custom type name), mention it in the ambiguity error for the unnamed
`Array(Tuple(Float64, Float64))` form, update the docs, and add regression queries for both
concrete `MultiPoint` and `MultiPoint` inside `Geometry`.
…ql_geometry

CI: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=109951&sha=bb3d9e1b5ac15619831441c318769e1104f93074&name_0=PR

`test_mysql_geometry` failed because `parseWKBFormat` now parses `MULTIPOINT` WKB (this PR made
it representable), but `insertGeometryValue` in `MySQLSource.cpp` had no `MultiPoint` branch, so
the concrete type name stayed empty and reading a generic `geometry` column holding a MULTIPOINT
threw `Cannot store a geometry of type  into a Geometry column`.

- Serialize the parsed `MultiPoint` in `insertGeometryValue`.
- Map MySQL's concrete `multipoint` column type to `MultiPoint` in `convertMySQLDataType`
  (previously it fell back to `String` because there was no counterpart).
- Update `test_mysql_geometry`: MULTIPOINT in a generic `geometry` column now reads back as a
  value; the unrepresentable-subtype regression uses `GEOMETRYCOLLECTION` instead.
- Update the `mysql_datatypes_support_level` setting doc and the MySQL database engine doc:
  only `GEOMETRYCOLLECTION` has no ClickHouse counterpart now.
@alexey-milovidov alexey-milovidov added can be tested Allows running workflows for external contributors and removed can be tested Allows running workflows for external contributors labels Jul 20, 2026
@alexey-milovidov

Copy link
Copy Markdown
Member

Pushed fixes for the CI reds of commit bb3d9e1:

  • test_mysql_geometry (5 integration jobs): real regression from this PR — parseWKBFormat now parses MULTIPOINT, but the MySQL read path had no MultiPoint branch, so it threw Cannot store a geometry of type into a Geometry column. Fixed in f4b5ef3: MULTIPOINT values in a generic geometry column now read back through the Geometry type's MultiPoint alternative, the concrete multipoint column type maps to MultiPoint, and the test's unrepresentable-subtype regression uses GEOMETRYCOLLECTION instead.
  • geometryIntersect{Cartesian,Spherical} (AI review blocker): fixed in 5c2e85c with regression queries for concrete MultiPoint and MultiPoint inside Geometry.
  • Docs check (Mintlify): the docs/reference/formats/GeoJSON.mdx update is an intentional regeneration matching the embedded-docs change, so I added the pr-autogenerated-docs label.

Unrelated failures:

Comment thread src/DataTypes/convertMySQLDataType.cpp Resolved
`convertMySQLDataType` maps MySQL `MULTIPOINT` columns to `MultiPoint`,
but `ExternalResultDescription::init` did not route `DataTypeMultiPointName`
through the geometry branch, so such columns fell through to `vtArray` and
`MySQLSource::insertValue` threw `Unsupported value type` when reading them
(`test_mysql_geometry` failure on 5 integration jobs).

CI: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=109951&sha=f4b5ef3798509611f5a9aac5056bb242f7432013&name_0=PR
PR: ClickHouse#109951

Co-Authored-By: Claude Fable 5 <[email protected]>
@alexey-milovidov

Copy link
Copy Markdown
Member

Pushed d880181 fixing the test_mysql_geometry regression from the CI run on f4b5ef3 (5 integration jobs): ExternalResultDescription::init did not classify MultiPoint as vtGeometry, so a concrete MySQL MULTIPOINT column fell through to vtArray and MySQLSource::insertValue threw Unsupported value type. Verified locally against a real MySQL 8 server through the mysql table function.

The remaining two reds on f4b5ef3 are unrelated to this PR:

@alexey-milovidov alexey-milovidov removed the can be tested Allows running workflows for external contributors label Jul 21, 2026
@alexey-milovidov

Copy link
Copy Markdown
Member

CI status on d75a41db: 152 jobs green; the 3 red jobs are all unrelated to this PR:

Merged current master (5ec2b2ed5b6, clean, no conflicts) to pull in #111671 so the settings-history reds clear on the next run; verified the branch's doc and code changes survived master's docs restructure and that an incremental build of clickhouse passes with no warnings. Approved the gated workflow run for the new head.

The AI-review verdict still shows "Request changes", but all three Majors are marked dismissed by author: they concern the pre-existing structural ambiguity of the geo family (MultiPoint/Ring/LineString all being Array(Point) distinguished only by the custom type name) and the shared Variant adaptor — a design decision for the maintainer, out of scope for this feature PR per the earlier approval.

alexey-milovidov and others added 2 commits July 24, 2026 21:58
`strAppendGeoValue` picked the concrete geo type for a `Geometry` value
from `1..GeoTypes::MultiPolygon`, but the new `GeoTypes::MultiPoint = 8`
enumerator sits after `GeoTypes::Geometry = 7` in the proto enumeration,
so the fuzzer could never produce a `MultiPoint` alternative inside
`Geometry`. Remap a draw of `Geometry` to `MultiPoint` so all seven
concrete alternatives are generated uniformly.

Addresses the AI review finding on this line.

Co-Authored-By: Claude Fable 5 <[email protected]>
@alexey-milovidov

Copy link
Copy Markdown
Member

Update (head 58b31694ffd):

  • Merged master (clean; all 14 documentation edits verified intact after the merge). This pulls in Do not fail internal system-log ALTER when the metadata exceeds max_query_size #111703, which fixes the system.metric_log QUERY_IS_TOO_LARGE error that caused the Upgrade check red on 5ec2b2ed5b6.
  • Fixed the remaining live AI-review Major: strAppendGeoValue in BuzzHouse never generated MultiPoint for Geometry values, because it drew from 1..GeoTypes::MultiPolygon while GeoTypes::MultiPoint = 8 sits after GeoTypes::Geometry = 7 in the enumeration. Now a draw of Geometry is remapped to MultiPoint, covering all seven concrete alternatives uniformly.

Remaining reds on 5ec2b2ed5b6 are unrelated to this PR:

The three dismissed threads (geometryConverters.h Ring fallback, geometry.h unnamed-structural mapping, flipCoordinates.cpp docs) remain pre-existing design questions for a maintainer, per the earlier discussion.

@groeneai

Copy link
Copy Markdown
Collaborator

Acknowledged. Confirmed via CIDB this is a chronic cross-PR/trunk crash, not caused by this PR: Stress test (arm_asan_ubsan, s3) FAIL/ERROR hit ~25 unrelated PRs plus 27 master runs in the last 30 days, with #109951 showing the same rate as the rest, so it will not block this PR. I'm pulling the crash core from the 5ec2b2ed5b6 arm_asan_ubsan s3 stress job to get a symbolized backtrace (no CI stack was written for the signal 11), and will follow up here with a separate fix PR or my findings.

@groeneai

Copy link
Copy Markdown
Collaborator

Follow-up: the fix is in #111873.

There was no core to pull: the job never wrote one. The only trace of the crash is the watchdog line <Fatal> Application: Child process was terminated by signal 11. in the server log. Findings from the 111 MB err.log and the CI scripts:

  1. The log parser matched only the fault-handler stack (absent here) or the literal signal 9, so a signal-11 death was reported as the opaque "Unknown error".
  2. Stress/upgrade jobs can never produce cores: the server starts via sudo, which clamps RLIMIT_CORE to 0/0, so the server's startup raise fails (the recurring "Cannot set max size of core file" warning) and the kernel writes nothing.
  3. Even with the limit fixed, core_path=/cores (the only collected mount) was configured only for the late stress-phase restart, so upgrade-job and early-phase crashes would have written cores into a container-local directory that dies with the container.

With no stack, no core, and in-flight queries unrelated to this PR, the SIGSEGV itself cannot be located, and I am not speculating an engine fix without evidence. #111873 fixes all three diagnostics gaps so the next occurrence of this chronic crash (27 master + ~25 unrelated-PR hits in 30 days) carries the signal name and a collectable core dump.

`QueryFuzzer::getRandomType` enumerated only the six pre-existing geo
type aliases, so this long-running fuzzing path could not generate
`MultiPoint` columns or casts. Add `MultiPoint` to the list, matching
the `BuzzHouse` generator.

Co-Authored-By: Claude Fable 5 <[email protected]>
@alexey-milovidov

Copy link
Copy Markdown
Member

CI on 58b3169 completed: 154 passed, one red — Upgrade check (amd_release), unrelated to this PR:

  • Error message in clickhouse-server.log: the new server fails to attach test_7.t_plt_reparent at startup with CORRUPTED_DATA (Cannot parse input: expected '\n' before: 'version: 1...'). The table comes from 04063_part_loading_tree_rollback_reparent.sh, which fabricates txn_version.txt files by writing plain text directly into the part's data path. The test is tagged no-object-storage, no-encrypted-storage, but the Upgrade check does not forward those skip tags, so the table landed on cached_s3_encrypted — there the fabricated plain-text file overwrites the local metadata file of the object storage disk, and DiskObjectStorageMetadata::deserialize throws while the upgraded server re-attaches the leaked detached table. The same failure fires across many PRs since 2026-07-23 (84 occurrences). Fix in progress: Upgrade check: honor storage skip tags by forwarding --s3-storage / --encrypted-storage #111772 (@groeneai — this is exactly the failure mode your PR addresses; linking it here).

The AI review verdict flipped to ✅ Approve; the single remaining Nit (QueryFuzzer::getRandomType missing MultiPoint) is fixed in d31235b.

@clickhouse-gh

clickhouse-gh Bot commented Jul 25, 2026

Copy link
Copy Markdown
Contributor

LLVM Coverage Report

Metric Baseline Current Δ
Lines 86.20% 86.30% +0.10%
Functions 92.00% 92.00% +0.00%
Branches 78.40% 78.40% +0.00%

Changed lines: Changed C/C++ lines covered: 601/688 (87.35%) · Uncovered code

Full report · Diff report

@alexey-milovidov
alexey-milovidov added this pull request to the merge queue Jul 26, 2026
Merged via the queue into ClickHouse:master with commit 5baed0f Jul 26, 2026
179 checks passed
@robot-clickhouse robot-clickhouse added the pr-synced-to-cloud The PR is synced to the cloud repo label Jul 26, 2026
groeneai added a commit to groeneai/ClickHouse that referenced this pull request Aug 17, 2026
Master removed ci/tests/test_log_parser.py in 3a69545, which deleted 71
ci/tests files and added to .claude/CLAUDE.md: "you don't need to commit it in
the repository, because we don't have automated CI tests". 39 of those files
were selectively restored afterwards; this one was not. Taking master's side.

The parser and shell changes are unaffected: master's Signal pattern still
matches only signal 9, and stress_tests.lib still lacks both the per-start
core_path config and the core-limit evidence line.

Related: ClickHouse#109951
Report: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=109951&sha=5ec2b2ed5b6cf1fc8ede04ce6756bebc1e281cda&name_0=PR&name_1=Stress%20test%20%28arm_asan_ubsan%2C%20s3%29
pull Bot pushed a commit to Haofei/ClickHouse that referenced this pull request Sep 8, 2026
…le core dumps

A Stress test (arm_asan_ubsan, s3) server SIGSEGV left no actionable evidence:
no BaseDaemon fault stack, no sanitizer report, no core dump, nothing in dmesg.
Only a watchdog line survived, and CI reported the opaque "Unknown error".

Two independent CI diagnostics gaps caused this, both fixed here:

1. FuzzerLogParser.parse_failure matched only the fault-handler stack (absent
   for this crash class) or the literal signal 9, so a signal-11 watchdog line
   fell through to UNKNOWN_ERROR. The Signal pattern now matches any signal,
   anchored to the watchdog's "<Fatal> Application: " record. The anchor keeps a
   live-server ShellCommand "Child process was terminated by signal N" exception
   (server still alive) out of the Signal branch, fixing a pre-existing false
   positive of the old unanchored pattern too.

2. The server starts via clickhouse start, i.e. through sudo, which clamps
   RLIMIT_CORE to 0/0, so its startup raise to core_dump.size_limit fails (the
   recurring "Cannot set max size of core file" warning) and the kernel writes
   no core. A Defaults rlimit_core="0,infinity" sudoers drop-in in the
   stress-test image gives the sudo child soft=0/hard=unlimited, so only the
   server's own startup raise takes effect. Covers the upgrade job (same image).

parse_failure only names an already-decided failure, so no new failures are
introduced; the independent OOM job-OK allowance is unchanged. Adds 4 parser
tests (signal 11, signal 9 KILL, fault-stack-beats-watchdog precedence,
ShellCommand false positive).

The underlying SIGSEGV is not addressed: with no stack, no core and no
reproducer it cannot be located, and no engine fix is speculated without
evidence. This makes the next occurrence attributable and debuggable.

Related: ClickHouse#109951

Co-Authored-By: Claude Opus 4.8 <[email protected]>
pull Bot pushed a commit to Haofei/ClickHouse that referenced this pull request Sep 8, 2026
… limit

The core destination (<core_path>/cores</core_path>, the only host-mounted
directory the job collects) was written by configure_limits, which the stress
runner calls only just before its late-phase restart and the upgrade runner
never calls. So upgrade-job crashes and early stress-phase crashes wrote their
core into the container-local default /var/lib/clickhouse/cores and lost it with
the container.

Write core_path from configure instead, which every server start in both runners
goes through, so a crash at any start lands its core in the collected /cores. The
duplicate line is dropped from configure_limits (single writer). start_server now
logs the started server's Max core file size from /proc/<pid>/limits as per-run
evidence that the sudoers rlimit_core drop-in worked and the soft limit is
raisable; the probe is non-fatal (|| :) so it can never fail a start under set -e.

Related: ClickHouse#109951

Co-Authored-By: Claude Opus 4.8 <[email protected]>
zeekay pushed a commit to hanzoai/datastore that referenced this pull request Sep 11, 2026
`convertMySQLDataType` maps MySQL `MULTIPOINT` columns to `MultiPoint`,
but `ExternalResultDescription::init` did not route `DataTypeMultiPointName`
through the geometry branch, so such columns fell through to `vtArray` and
`MySQLSource::insertValue` threw `Unsupported value type` when reading them
(`test_mysql_geometry` failure on 5 integration jobs).

CI: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=109951&sha=f4b5ef3798509611f5a9aac5056bb242f7432013&name_0=PR
PR: ClickHouse#109951

Co-Authored-By: Claude Fable 5 <[email protected]>
zeekay pushed a commit to hanzoai/datastore that referenced this pull request Sep 11, 2026
…tions

`FunctionGeometry::executeImpl` read `ColumnVariant` local discriminators
and interpreted them as the global `GeometryColumnType` order. After a
variant-to-variant conversion (e.g. `flipCoordinates` over `Geometry`
returns a plain `Variant` sorted by name, and the cast back to `Geometry`
keeps the source local order), local and global discriminators differ, so
`Point` rows were decoded as `Polygon`, `Polygon` rows as `Ring`, etc.,
producing wrong results or a `BAD_GET` exception. Use
`globalDiscriminatorAt` instead and add a regression test covering all
Geometry alternatives through `flipCoordinates` both in an expression and
through a Memory table.

Reported by the AI review on ClickHouse#109951

Co-Authored-By: Claude Fable 5 <[email protected]>
zeekay pushed a commit to hanzoai/datastore that referenced this pull request Sep 11, 2026
The `mysql_datatypes_support_level` entry in `SettingsChangesHistory.cpp` and the
`session-settings.mdx` mirror still described `MULTIPOINT` as having no ClickHouse
counterpart, although this PR maps MySQL `MULTIPOINT` to `MultiPoint`. Also
regenerate the `flipCoordinates` section of `other-functions.mdx` from the updated
`FunctionDocumentation`, which now includes `MultiPoint`.

https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=109951&sha=01b0e292205890653dd65826189752f3c8cc74cc&name_0=PR
ClickHouse#109951

Co-Authored-By: Claude Fable 5 <[email protected]>
zeekay pushed a commit to hanzoai/datastore that referenced this pull request Sep 11, 2026
alexey-milovidov pushed a commit to bobrik/ClickHouse that referenced this pull request Nov 4, 2026
`MultiPoint` was appended to `Geometry` as discriminator 6 (ClickHouse#109951), and a
part's columns.txt stores the type by name, so a part written by 25.11..26.7
is read with the 7-variant serialization while it has no `MultiPoint` streams.
Reading, merging or mutating such a wide part failed with
`Stream g.MultiPoint.size0 ... is not found` (LOGICAL_ERROR), the same for
`Array(Geometry)` and `JSON(p Geometry)`, and the `g.MultiPoint` subcolumn of
an old compact part failed with `Unexpected substream`.

`SerializationVariant` and `SerializationVariantElement` now treat a variant as
absent when the reader reports the discriminators stream present but none of
the variant's own streams, and skip its prefix, data and stream enumeration.
`MergeTreeReaderWide::addStreams` enumerates with the same existence check, so
such a column is no longer classified as partially read; otherwise
`fillMissingColumns` would replace the read values with defaults and a merge
would persist the NULLs.

Closes ClickHouse#128592

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

can be tested Allows running workflows for external contributors manual approve Manual approve required to run CI pr-autogenerated-docs PR that regenerates docs artifacts from source; exempt from the autogenerated-region edit guard pr-feature Pull request with new product feature pr-synced-to-cloud The PR is synced to the cloud repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add MultiPoint data type and support it in Geometry

4 participants