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

babelfish-for-postgresql / babelfish_extensions / 14972467354
77%

Build:
DEFAULT BRANCH: BABEL_5_X_DEV
Ran 12 May 2025 01:13PM UTC
Jobs 1
Files 119
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

12 May 2025 12:40PM UTC coverage: 75.337% (+0.2%) from 75.175%
14972467354

push

github

web-flow
TDS sender support and Custom query parser for POINT ZM flags (#3612)

TDS sender support and Custom query parser for POINT ZM flags

This PR introduces comprehensive improvements to spatial data type handling in Babelfish. It covers syntax parsing, TDS transmission, function support, and CAST operations.
Key Enhancements:

    Syntax Support - NULL Handling:
        Added parser support with lexer definitions, parsing tree, support functions, and structured error handling.
        Rewrote Point struct for better maintainability.

    TDS Sender Enhancements:
        Investigated and implemented structured handling of empty points, 2D/3D/M points, and general spatial data transmission.

    Function Support Improvements:
        Migrated SQL-based logic to C for better performance.
        Enhanced SRID validation and rewrote geography/geometry logic to remove redundant type checks.
        Implemented STAsBinary and STDistance function improvements, including handling for empty geometries and ensuring correct SRID validation.

    CAST Support for Spatial Data:
        Improved conversion between character, byte, geography, and geometry types.
        Investigated flag behaviors and ensured proper handling of empty spatial objects.

    Comprehensive Testing:
        Verified function correctness across empty geometries, different dimensions, and NULL combinations.
        Added CAST tests for all formats to ensure seamless conversions.

Issues Resolved

Tasks:

    BABEL-5671
    BABEL-5769
    BABEL-5770

Signed-off by: Mohit Raj mrxmohit@amazon.com

588 of 614 new or added lines in 5 files covered. (95.77%)

9 existing lines in 2 files now uncovered.

48513 of 64395 relevant lines covered (75.34%)

297234.08 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
87.42
0.29% contrib/babelfishpg_tds/src/backend/tds/tdstypeio.c
3
95.38
contrib/babelfishpg_common/src/geo.c
4
93.55
contrib/babelfishpg_common/src/geo_scan.l
18
95.63
-2.88% contrib/babelfishpg_common/src/spatialtypes.c

Uncovered Existing Lines

Lines Coverage ∆ File
1
95.63
-2.88% contrib/babelfishpg_common/src/spatialtypes.c
8
79.66
-0.96% contrib/babelfishpg_common/src/varbinary.c
Jobs
ID Job ID Ran Files Coverage
1 14972467354.1 12 May 2025 01:13PM UTC 119
75.34
GitHub Action Run
Source Files on build 14972467354
  • Tree
  • List 119
  • Changed 3
  • Source Changed 2
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #14972467354
  • b53d427f on github
  • Prev Build on BABEL_5_X_DEV (#14970420966)
  • Next Build on BABEL_5_X_DEV (#14976658392)
  • Delete
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

© 2025 Coveralls, Inc