Skip to content

feat: map geo type to string or binary.#767

Merged
youngsofun merged 5 commits intodatabendlabs:mainfrom
youngsofun:feat/arrow_geo
Apr 14, 2026
Merged

feat: map geo type to string or binary.#767
youngsofun merged 5 commits intodatabendlabs:mainfrom
youngsofun:feat/arrow_geo

Conversation

@youngsofun
Copy link
Copy Markdown
Member

@youngsofun youngsofun commented Apr 13, 2026

This change updates geo type handling across the Rust driver and language bindings so Geometry/Geography can map to either text or binary output depending on geometry_output_format. The core SQL value layer now
carries geo values as a dedicated GeoValue enum (String or Binary) instead of forcing everything through string conversion, which removes the old geo/geozero-based conversion path and aligns decoding with Databend’s
result format settings.

The Python and Node.js bindings were updated to expose these values correctly:

  • Python now returns str for text geo formats and bytes for WKB/EWKB payloads
  • Node.js continues returning strings, with WKB/EWKB surfaced as Buffer
  • binding integration tests now cover GeoJSON, WKT, and WKB cases

related server side pr databendlabs/databend#19676

@youngsofun youngsofun marked this pull request as draft April 13, 2026 16:16
@youngsofun youngsofun force-pushed the feat/arrow_geo branch 3 times, most recently from ef35d29 to de50a81 Compare April 14, 2026 02:42
@youngsofun youngsofun marked this pull request as ready for review April 14, 2026 08:29
@youngsofun youngsofun requested a review from b41sh April 14, 2026 08:29
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 49ce796e2d

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@youngsofun youngsofun merged commit 78a949d into databendlabs:main Apr 14, 2026
41 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant