You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@datafusion.apache.org by "pelovett (via GitHub)" <gi...@apache.org> on 2026/10/21 20:52:57 UTC
Re: [PR] Clickhouse: Clickhouse assume table constraint [datafusion-sqlparser-rs]
pelovett commented on PR #2467:
URL: https://github.com/apache/datafusion-sqlparser-rs/pull/2467#issuecomment-6326305138
Hey @LucaCappelletti94 , sorry for the delay in responding to your comments after requesting them. I've updated the code with your suggestions and added a fix for check constraints without parentheses. My solution adds a field to the constraint structs tracking if they were created with parentheses. This would be a breaking change for these structs.
The other option I could think of was storing the parenthesis state by wrapping the expressions in `Expr::Nested` but this could break code that creates structs manually rather than with the parser.
Not sure the best option here but would appreciate your opinion.
--
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