raminqaf commented on code in PR #29520:
URL: https://github.com/apache/flink/pull/29520#discussion_r4335430861
##########
docs/data/sql_functions.yml:
##########
@@ -1434,6 +1434,28 @@ variant:
error instead of returning NULL, use the `PARSE_XML` function.
See `PARSE_XML` for the full documentation.
+ - sql: XML_STRING(variant)
+ table: VARIANT.xmlString()
+ description: |
+ Converts a Variant into an XML string. This is the inverse of
`PARSE_XML`.
+
+ Fields with an `@` prefix are written as attributes, the `$` field as
text, and the other
+ fields as child elements, in the order that the `#` field records. A
Variant NULL is written
+ with `xsi:nil="true"`. A value other than a string or a UUID gets an
`xsi:type` attribute,
+ e.g. `xsi:type="xs:int"`, so that it reads back as the same type. If the
XML string uses the
+ `xsi` or `xs` prefix, the root element declares it.
Review Comment:
Should we make section bullet point like?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]