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

amazon-aurora / babelfish_extensions / 15963943189
76%
main: 77%

Build:
Build:
LAST BUILD BRANCH: jira-babel-6037
DEFAULT BRANCH: main
Ran 30 Jun 2025 05:10AM UTC
Jobs 1
Files 120
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 Jun 2025 04:34AM UTC coverage: 75.9% (+0.07%) from 75.827%
15963943189

push

github

web-flow
Add support for OPENXML with WITH clause (#76)

OPENXML provides a rowset view over an XML document. Since OPENXML is a rowset provider and it returns a set of rows, we can use OPENXML in the FROM clause of a T-SQL statement just as we can use any other table, view, or table-valued function. The WITH clause in OPENXML provides a rowset format (and additional mapping information as required) by using either SchemaDeclaration or specifying an existing TableName.
Currently Babelfish does not have support for openxml. So the primary objective is to add support for OPENXML with WITH clause.
The syntax of openxml is as follows :

OPENXML ( idoc int [ in ] , rowpattern nvarchar [ in ], [ flags byte [ in ] ] )
    [ WITH ( SchemaDeclaration | TableName ) ]
Arguments

idoc
The document handle of the internal representation of an XML document. The internal representation of an XML document is created by calling sp_xml_preparedocument.
rowpattern
The XPath pattern used to identify the nodes to be processed as rows. The nodes come from the XML document whose handle is passed in the idoc parameter.
flags
Indicates the mapping used between the XML data and the relational rowset, and how the spill-over column is filled. flags is an optional input parameter, and can be one of the following values.
The WITH clause provides a rowset format (and additional mapping information as required) by using either SchemaDeclaration or specifying an existing TableName. If the optional WITH clause isn't specified, the results are returned in an edge table format. Edge tables represent the fine-grained XML document structure (such as element/attribute names, the document hierarchy, the namespaces, PIs, and so on) in a single table.

BABEL-3635
Engine PR : amazon-aurora/postgresql_modified_for_babelfish#133

Signed-off-by: Harsh Dubey harshdu@amazon.com

299 of 334 new or added lines in 6 files covered. (89.52%)

49725 of 65514 relevant lines covered (75.9%)

314222.53 hits per line

Uncovered Changes

Lines Coverage ∆ File
30
88.97
0.01% contrib/babelfishpg_tsql/src/procedures.c
5
84.65
0.11% contrib/babelfishpg_tsql/src/hooks.c
Jobs
ID Job ID Ran Files Coverage
1 15963943189.1 30 Jun 2025 05:10AM UTC 120
75.9
GitHub Action Run
Source Files on build 15963943189
  • Tree
  • List 120
  • Changed 8
  • Source Changed 7
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #15963943189
  • 05cedcd2 on github
  • Prev Build on BABEL-1168 (#15900419209)
  • Next Build on BABEL-3635 (#20811885242)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc