Skip to content

Add apple_health extension (macOS first) - #2653

Open
Mjboothaus wants to merge 3 commits into
duckdb:mainfrom
Mjboothaus:ext/apple_health
Open

Add apple_health extension (macOS first)#2653
Mjboothaus wants to merge 3 commits into
duckdb:mainfrom
Mjboothaus:ext/apple_health

Conversation

@Mjboothaus

Copy link
Copy Markdown

Extension

apple_health — read Apple Health export.zip / export.xml as typed DuckDB tables.

Source https://github.com/Mjboothaus/duckdb-apple-health
Ref 092eed0d46eda0926697212abb6a1bd5975aa71a (git tag v0.1.0)
Language C (stable C API / extension-template-c)
Licence Apache-2.0
Maintainer @Mjboothaus

Functions

  • read_apple_health
  • apple_health_workouts
  • apple_health_activity_summaries
  • apple_health_workout_routes
  • apple_health_workout_route_points

Platforms

macOS only for the initial submission (excluded_platforms lists linux/windows/wasm). Happy to widen once CI is proven.

Notes

  • No network I/O / telemetry in the extension
  • Synthetic fixtures only in the source repo
  • Optional Python helpers in the same monorepo are not part of the extension build

Local verification (source repo)

  • SQLLogic: 3/3 pass
  • pytest extension smoke: 17 passed / 1 skipped

Please let me know if the C-API monorepo layout needs adjustments for community CI.

DuckDB C-API scanner for Apple Health export.zip / export.xml.
Source: Mjboothaus/duckdb-apple-health@092eed0 (v0.1.0).
Excluded non-macOS platforms for the initial publish.
@sebastiaan-dev sebastiaan-dev added the CI failure CI failure that seems related to the extension label Sep 7, 2026
@sebastiaan-dev

Copy link
Copy Markdown
Member

Hi @Mjboothaus, it seems there is something not setup correctly, could you take a look at the CI?

Community CI failed loading the extension because the binary was stamped
for C API v1.5.6 while hosts only accept ≤ v1.2.0. Point at source fix
c447fa6 (tag v0.1.1).

Co-Authored-By: Warp <agent@warp.dev>
@Mjboothaus

Copy link
Copy Markdown
Author

Fixed the CI failure.

Cause: the extension was stamped with DuckDB C extension API v1.5.6 (TARGET_DUCKDB_VERSION was conflated with the DuckDB release). Community hosts only load C-API extensions built for ≤ v1.2.0.

Fix in source (Mjboothaus/duckdb-apple-health#34, tag v0.1.1):

  • TARGET_DUCKDB_VERSION=v1.2.0 (stable C ABI, matches extension-template-c)
  • refreshed duckdb_capi headers from duckdb v1.2.0
  • distribution pipeline duckdb_version: v1.5.5 for the build/test host
  • local make test_release: 3/3 PASS

This PR now points repo.ref at c447fa60d56b445da430c3f8472794dde9c79ec2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI failure CI failure that seems related to the extension

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants