You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@datafusion.apache.org by ti...@apache.org on 2026/10/08 15:43:15 UTC

(datafusion-python) 04/04: docs: say the collision check does not compare aliases

This is an automated email from the ASF dual-hosted git repository.

timsaucer pushed a commit to branch feat/bundle-functions
in repository https://gitbox.apache.org/repos/asf/datafusion-python.git

commit 7a843d3399cea985f3f0619e91308348702ded9a
Author: Tim Saucer <ti...@gmail.com>
AuthorDate: Thu Oct 8 09:03:53 2026 -0400

    docs: say the collision check does not compare aliases
    
    DataFusion registers a function under each alias as well as its name,
    so an alias matching another declared function's name replaces it
    silently. Add it to the cases the check does not catch.
    
    Co-Authored-By: Claude Opus 5.5 (1M context) <no...@anthropic.com>
---
 docs/source/extension-guide/bundles.md | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/docs/source/extension-guide/bundles.md b/docs/source/extension-guide/bundles.md
index cedbe0f4..f2793d18 100644
--- a/docs/source/extension-guide/bundles.md
+++ b/docs/source/extension-guide/bundles.md
@@ -312,7 +312,7 @@ the one case a rename fixes. Collisions are keyed on position rather than on
 object identity so that passing one extension twice reads as the caller's
 duplicate that it is, rather than as a bundle colliding with itself.
 
-Three cases this does *not* catch:
+Four cases this does *not* catch:
 
 - **Different kinds never collide.** Names are compared within a kind, so a
   scalar function and an aggregate may both be called `normalize`.
@@ -326,6 +326,10 @@ Three cases this does *not* catch:
   shadowing rule above, applied to something you may not have meant to shadow.
   Splitting colliding bundles across two calls therefore does not resolve the
   collision; it hides it. Use two sessions.
+- **Aliases are not compared.** DataFusion registers a function under each of
+  its aliases as well as its name, but only the names are checked. A function
+  whose alias matches another declared function's name replaces it, or is
+  replaced by it, with nothing raised.
 
 Your caller cannot rename your function, so stay out of the way: prefix the
 names with something tied to your library.


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