-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Add support for XPath functions #22254
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
81b44f9
to
c220151
Compare
570a2ca
to
82463d0
Compare
0bbdc92
to
64662ca
Compare
@nineinchnick Can you take a look when you get a chance? Thanks! |
I'd love to have these functions available, but @martint has to review it, as the function names and signatures need to be approved by him first. |
Oh sure no worries! Thanks |
We should look into whether there's any precedent for this in the SQL specification or other databases before we settle on specific syntax and semantics. |
This pull request has gone a while without any activity. Tagging the Trino developer relations team: @bitsondatadev @colebow @mosabua |
I did not get to work on this PR for a while. I will look into it |
Very interested in this as well! To add some data points:
The ANSI SQL standard has a part on XML: https://webstore.ansi.org/standards/iso/isoiec9075142023 which I don't have access to, but a preview is available at: https://webstore.ansi.org/preview-pages/INCITS/preview_INCITS+ISO+IEC+9075-14-2008.pdf |
Description
Additional context and related issues
XPathConstants.NODE
is not utilized in both Hive and Spark.xpath_node
may not be needed here. For now the behavior is following that of the case withNODESET
, returning the content provided byNode#getNodeValue
Release notes
( ) This is not user-visible or is docs only, and no release notes are required.
( ) Release notes are required. Please propose a release note for me.
(x) Release notes are required, with the following suggested text: