would it be better to return an error here to the user instead of a panic? I realize that would require some additional plumbing. However, a panic is certainly better than SEGFAULT 👍 _Originally posted by @alamb in https://github.com/apache/datafusion/pull/15968#discussion_r2076233308_