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

MobilityDB / MobilityDB
95%

Build:
DEFAULT BRANCH: master
Repo Added 10 Aug 2020 07:47PM UTC
Files 130
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

LAST BUILD ON BRANCH master
branch: master
CHANGE BRANCH
x
Reset
  • master
  • add-coverage
  • add-tfloat-max-value
  • affine
  • alpha
  • appendInstant
  • avgValue
  • bearing
  • before_after
  • buffer
  • buffer_fn
  • cbuffer
  • commutator
  • const-modifiers
  • const_array
  • coverage
  • coverage-support
  • datagen
  • datagen_sql
  • dbscan
  • develop
  • distance_fix
  • div0_fix
  • eacomp
  • fix-timezone-cache
  • fix/geoset-make-geodetic-flag
  • fix_naming
  • frechet
  • geo_same
  • geo_wkb
  • haswidth
  • header-cleanup
  • improve-documentation
  • improve_docs
  • issue_679
  • issue_690
  • keyvalue
  • lof
  • log
  • lwcircstring
  • macos
  • macos-1.2
  • macos-1.3
  • macos_workflow
  • mec_fast
  • meos_api
  • meos_array
  • meos_examples
  • meos_multithread
  • meos_spgist
  • meos_test
  • mschoema-patch-1
  • nad_fix
  • naming_common
  • npoint
  • oid_meostype
  • patch-3
  • pg13eol
  • pg18
  • pg18_types_linked
  • pg18_workflow
  • postgis_3.6
  • postgres_move
  • pumpup_dev
  • refs/heads/develop
  • refs/tags/v1.0
  • refs/tags/v1.0-beta4
  • refs/tags/v1.1.0
  • refs/tags/v1.1.0-alpha
  • refs/tags/v1.1.0-beta1
  • refs/tags/v1.1.0rc1
  • refs/tags/v1.1.0rc2
  • refs/tags/v1.1.1
  • refs/tags/v1.1.2
  • refs/tags/v1.2.0
  • refs/tags/v1.2.0rc1
  • refs/tags/v1.2.1
  • refs/tags/v1.3.0-alpha
  • refs/tags/v1.3.0rc1
  • renaming
  • revert-208-fix-datagen
  • revert-457-develop
  • rtree
  • rtree-1-bugfixes
  • rtree-2-search-ops
  • rtree-3-temporal
  • rtree-4-example
  • rtree_fix
  • seq_seqset
  • single_parsing
  • skiplist_test
  • sp_gist
  • spatial-csv
  • stable-1.1
  • stable-1.2
  • stable-1.3
  • stops
  • tbool_tint
  • tcbuffer
  • testdiff
  • text_wkb
  • tgeo
  • tgeo_next
  • tint-benchmark
  • tofree
  • towards-postgis3
  • tpoint_fix
  • trajectory
  • trajectoryrob
  • translations_doc-data-generator-pot--develop_es
  • translations_doc-introduction-pot--develop_es
  • translations_doc-manipulating-box-types-pot--develop_es
  • translations_doc-manipulating-temporal-types-pot--develop_es
  • translations_doc-mobilitydb-manual-pot--develop_es
  • translations_doc-reference-pot--develop_es
  • translations_doc-temporal-network-points-pot--develop_es
  • translations_doc-temporal-types-pot--develop_es
  • translations_doc-time-types-range-types-pot--develop_es
  • trav_area
  • trend
  • trgeo
  • trgeo_next
  • unary_union
  • upgrade
  • v1.0-beta2
  • v1.0-beta3
  • workflow
  • zspan

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

Relevant lines Covered
Build:
Build:
34306 RELEVANT LINES 32665 COVERED LINES
1142066.22 HITS PER LINE
Source Files on master
  • Tree
  • List 129
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
23755778968 master 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... push 30 Mar 2026 04:35PM UTC web-flow github
95.22
23606556697 master Clean up rtree_example (#774) Rewrite the example to run all four bounding box types (floatspan, tstzspan, tbox, stbox) sequentially at runtime instead of using compile-time #if/#elif blocks that required recompilation to switch types. Each type... push 26 Mar 2026 04:49PM UTC web-flow github
95.21
23605116895 master Uniformize distance functions to return DBL_MAX on error or empty geometries (#769) push 26 Mar 2026 04:20PM UTC web-flow github
95.21
23604848585 master Add rtree_insert_temporal and rtree_search_temporal convenience functions (#773) Add functions that automatically extract the bounding box from a Temporal value, so users don't need to manually call tnumber_to_tbox or tspatial_to_stbox before ins... push 26 Mar 2026 04:15PM UTC web-flow github
95.21
23604155451 master Add search operation support to R-tree (overlaps, contains, contained_by) (#772) Add RTreeSearchOp enum to the public API with three operations following the GiST naming convention (from the stored box's perspective): - RTREE_OVERLAPS: find store... push 26 Mar 2026 04:00PM UTC web-flow github
95.21
23602072690 master Fix R-tree bugs: node_choose containment, id type, allocator, stack buffer (#771) - node_choose() checked the root bounding box `&rtree->box` instead of the i-th child's bbox `RTREE_NODE_BBOX_N(node, i)`, causing all insertions to go into child 0... push 26 Mar 2026 03:18PM UTC web-flow github
95.21
23436891017 master Fix inverted geodetic flag in geoset_make (#765) ### Bug fix: `geoset_make` inverted geodetic flag `geoset_make` in `geoset_meos.c` had an inverted ternary for determining the set type. `FLAGS_GET_GEODETIC` is truthy when the geodetic flag is s... push 23 Mar 2026 12:22PM UTC web-flow github
95.21
23412165671 master Minor bug in numspanset_shift_scale (#763) (#764) ## Bug fix: numspanset_shift_scale haswidth is a bool — passing it instead of width (the actual Datum value) to ensure_positive_datum meant the width value was never validated correctly. This wou... push 22 Mar 2026 08:53PM UTC web-flow github
95.21
23411899629 master Fix error code in MEOS for division by zero (#761) push 22 Mar 2026 08:37PM UTC web-flow github
95.22
23411885808 master Fix tpoint_parse when erroneous input is detected (#759) push 22 Mar 2026 08:37PM UTC web-flow github
95.21
See All Builds (2351)
  • Repo on GitHub
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