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

[I] PostgreSQL compatibility: `regexp_count` should count empty-pattern matches [datafusion]

Dandandan opened a new issue, #22267:
URL: https://github.com/apache/datafusion/issues/22267

   Split out from #22247.
   
   ### Mismatch
   
   `regexp_count` should count empty-pattern matches.
   
   ```sql
   SELECT regexp_count('abc', '');
   ```
   
   PostgreSQL:
   
   ```text
   4
   ```
   
   DataFusion:
   
   ```text
   0
   ```
   
   ### Expected behavior
   
   For PostgreSQL-compatible SQL semantics, DataFusion should either match PostgreSQL's result or raise the same class of domain/semantic error.
   


-- 
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.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


Re: [I] PostgreSQL compatibility: `regexp_count` should count empty-pattern matches [datafusion]

Posted by "toby-bridges (via GitHub)" <gi...@apache.org>.
toby-bridges commented on issue #22267:
URL: https://github.com/apache/datafusion/issues/22267#issuecomment-4470747782

   I’m taking a look at this one. I’m going to verify the current `regexp_count` empty-pattern behavior locally and, if it stays narrowly scoped, send a small fix with tests.


-- 
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


Re: [I] PostgreSQL compatibility: `regexp_count` should count empty-pattern matches [datafusion]

Posted by "xiedeyantu (via GitHub)" <gi...@apache.org>.
xiedeyantu commented on issue #22267:
URL: https://github.com/apache/datafusion/issues/22267#issuecomment-4468420557

   take


-- 
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


Re: [I] PostgreSQL compatibility: `regexp_count` should count empty-pattern matches [datafusion]

Posted by "kosiew (via GitHub)" <gi...@apache.org>.
kosiew closed issue #22267: PostgreSQL compatibility: `regexp_count` should count empty-pattern matches
URL: https://github.com/apache/datafusion/issues/22267


-- 
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


Re: [I] PostgreSQL compatibility: `regexp_count` should count empty-pattern matches [datafusion]

Posted by "toby-bridges (via GitHub)" <gi...@apache.org>.
toby-bridges commented on issue #22267:
URL: https://github.com/apache/datafusion/issues/22267#issuecomment-4470746518

   I’m taking a look at this one. I’m going to verify the current  empty-pattern behavior locally and, if it stays narrowly scoped, send a small fix with tests.


-- 
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


Re: [I] PostgreSQL compatibility: `regexp_count` should count empty-pattern matches [datafusion]

Posted by "xiedeyantu (via GitHub)" <gi...@apache.org>.
xiedeyantu commented on issue #22267:
URL: https://github.com/apache/datafusion/issues/22267#issuecomment-4470756917

   Thank you for also paying attention to this issue. I have taken this issue and am working on fixing it. I will submit the PR once I have it sorted out.


-- 
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