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

[I] Add missing string functions (contains, instr, position, substring_index) [datafusion-python]

timsaucer opened a new issue, #1450:
URL: https://github.com/apache/datafusion-python/issues/1450

   ## Summary
   
   A few string functions available in upstream DataFusion are not yet exposed in datafusion-python.
   
   ## Missing Functions
   
   - [ ] `contains` — checks if a string contains a substring
   - [ ] `instr` — returns the position of a substring within a string
   - [ ] `position` — returns position of substring (SQL standard syntax)
   - [ ] `substring_index` — returns the substring before/after N occurrences of a delimiter
   
   ## Upstream Reference
   
   - https://datafusion.apache.org/user-guide/sql/scalar_functions.html (String Functions section)
   
   ## Implementation
   
   - Rust bindings: `crates/core/src/functions.rs`
   - Python wrappers: `python/datafusion/functions.py`
   
   > **Note:** This gap analysis was performed using an AI agent comparing upstream DataFusion v53 documentation against the current datafusion-python codebase.


-- 
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] Add missing string functions (contains, instr, position, substring_index) [datafusion-python]

Posted by "timsaucer (via GitHub)" <gi...@apache.org>.
timsaucer closed issue #1450: Add missing string functions (contains, instr, position, substring_index)
URL: https://github.com/apache/datafusion-python/issues/1450


-- 
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] Add missing string functions (contains, instr, position, substring_index) [datafusion-python]

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

   Ok, there was a failure in the skill used to generate this PR. Specifically, `contains`, `instr`, and `position` do exist in the Python API just not in the rust bindings because they have aliases. That is correct. The only one we need to add is `substring_index`.


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