• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

MobilityDB / MobilityDB / 23755778968
95%

Build:
DEFAULT BRANCH: master
Ran 30 Mar 2026 04:35PM UTC
Jobs 1
Files 129
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

30 Mar 2026 04:30PM UTC coverage: 95.217% (+0.005%) from 95.212%
23755778968

push

github

web-flow
Enable using MeosArray beyond parsing (#768)

This commit moves the meos_array defintions from type_parser.c to
meos_internal.c to be available for other places in the codebase.
Additionally, we improve the API to be more uniform and easier to use.

Core changes to meos_array.c:
- meos_array_add: when varlength, store the pointer as a Datum instead
  of copying bytes from the address. Callers pass the pointer directly
  (e.g., meos_array_add(array, inst)) instead of wrapping in Datum.
- meos_array_get_n: return void * instead of Datum. For varlength arrays,
  return the stored pointer; for fixed-size arrays, return a pointer to
  the element in the internal buffer.
- meos_array_reset/destroy: add free_elems parameter. When true and the
  array is varlength, pfree each stored pointer. The array does not
  unconditionally free pointed-to memory; ownership is explicit.
- meos_array_destroy: fix memory leak by freeing array->elems.

Header changes:
- Move MeosArray typedef from public meos.h to meos_internal.h.
- Improve varlength field comment to clarify pointer storage semantics.

Caller updates (type_parser.c, tspatial_parser.c, trgeo_parser.c):
- Use meos_array_init(sizeof(Datum)) for set_parse (always stores Datums).
- Pass pointers directly to meos_array_add for temporal parsers.
- Replace DatumGetTInstantP/DatumGetTSequenceP with simple casts.
- Pass true to meos_array_destroy to free parsed objects on cleanup.

Co-authored-by: Maxime Schoemans <maxime.schoemans@enterprisedb.com>

90 of 97 new or added lines in 8 files covered. (92.78%)

32665 of 34306 relevant lines covered (95.22%)

1142066.22 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
2
94.87
meos/src/temporal/meos_array.c
5
90.4
0.11% meos/src/temporal/type_parser.c
Jobs
ID Job ID Ran Files Coverage
1 23755778968.1 30 Mar 2026 04:35PM UTC 129
95.22
GitHub Action Run
Source Files on build 23755778968
  • Tree
  • List 129
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • f11b7443 on github
  • Prev Build on master (#23606556697)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc