You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@datafusion.apache.org by "yoavcloud (via GitHub)" <gi...@apache.org> on 2026/04/09 05:42:07 UTC

Re: [PR] Adding support for PostgreSQL's XML functions [datafusion-sqlparser-rs]

yoavcloud commented on code in PR #2252:
URL: https://github.com/apache/datafusion-sqlparser-rs/pull/2252#discussion_r3055680957


##########
src/parser/mod.rs:
##########
@@ -1716,6 +1715,17 @@ impl<'a> Parser<'a> {
                 // name, resulting in `NOT 'a'` being recognized as a `TypedString` instead of
                 // an unary negation `NOT ('a' LIKE 'b')`. To solve this, we don't accept the
                 // `type 'string'` syntax for the custom data types at all.
+                DataType::Custom(type_name, modifiers)
+                    if dialect_of!(self is PostgreSqlDialect | GenericDialect)

Review Comment:
   Can we use a dialect method for this?



-- 
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: github-unsubscribe@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org