alamb commented on issue #4615:
URL:
https://github.com/apache/arrow-datafusion/issues/4615#issuecomment-1362056105
> Why do we cover up the error, instead of exposing them? Besides, we should
not return a compile error at runtime, even if the branch won't be hit. No
static typed language would do this (I guess SQL is not a dynamic typed
language 🤔).
Well I think the rationale / question is if SQL expression semantics allow /
require eager evaluation or if delayed evaluation
A more realistic example might be to use the CASE to explicitly guard
against a divide by zero
```sql
CASE
WHEN num <> 0 THEN value / num
ELSE 0.0
END
```
--
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]