boluor commented on issue #2856: URL: https://github.com/apache/doris-website/issues/2856#issuecomment-4525796086
\`count_substrings\` is only available from **Doris 3.1.1 onwards** (and in the active branch-2.1 patches). On 3.0.6.1 the function is not yet present, which matches what you observed. Verified against apache/doris source: \`CountSubstring.java\` exists on \`branch-2.1\`, \`branch-3.1\`, and \`master\`, but not on \`branch-3.0\`. The version-3.x docs already carry a \`:::note Since 3.1.1 :::\` banner just below the description. If you need this on a 3.0.x line, the workarounds are \`(LENGTH(s) - LENGTH(REPLACE(s, p, ''))) / LENGTH(p)\` or upgrading to 3.1.1+. Closing-ready — please confirm. -- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
