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

babelfish-for-postgresql / babelfish_extensions / 26897627583
77%

Build:
DEFAULT BRANCH: BABEL_6_X_DEV
Ran 03 Jun 2026 04:53PM UTC
Jobs 1
Files 128
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

03 Jun 2026 04:13PM UTC coverage: 76.938% (+0.02%) from 76.921%
26897627583

push

github

web-flow
Add support for the method .query() for XML data type (#4786)

Currently, Babelfish supports .exist() and .value() XML methods but .query() was unsupported and threw an error.
With this change, .query(xpath) is now supported and returns XML results (for XPath 1.0 compatible queries).

The implementation follows the same 3-stage architecture like .exist() and .value():

ANTLR rewriting: @x.query('/path') is rewritten to sys.bbf_xmlquery('/path', @x)
Grammar: BBF_XMLQUERY is mapped in gram-tsql-rule.y
PL/pgSQL function sys.bbf_xmlquery(): validates the input type, checks QUOTED_IDENTIFIER, calls PostgreSQL's
xpath(), and returns the result as XML

Task: BABEL-5224
Signed-off-by: Japleen Kaur <amjj@amazon.com>

36 of 38 new or added lines in 3 files covered. (94.74%)

54355 of 70648 relevant lines covered (76.94%)

624748.62 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
85.84
0.15% contrib/babelfishpg_tsql/runtime/functions.c
1
88.41
-0.02% contrib/babelfishpg_tsql/src/tsqlUnsupportedFeatureHandler.cpp
Jobs
ID Job ID Ran Files Coverage
1 26897627583.1 03 Jun 2026 04:53PM UTC 128
76.94
GitHub Action Run
Source Files on build 26897627583
  • Tree
  • List 128
  • Changed 4
  • Source Changed 3
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #26897627583
  • 9afe4031 on github
  • Prev Build on BABEL_6_X_DEV (#26812928458)
  • 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

© 2026 Coveralls, Inc