You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2022/10/09 09:27:03 UTC
[GitHub] [arrow-datafusion] jackwener commented on pull request #3771: Teach a negative NULL expression to return NULL instead of an error
jackwener commented on PR #3771:
URL: https://github.com/apache/arrow-datafusion/pull/3771#issuecomment-1272499097
PG will deduce the type of null based on other parameters.
we can specify the null type, it will ok.
```sql
jackwener=# select -null::int;
?column?
----------
(1 row)
```
deduce the type of null based on other parameters.
```sql
jackwener=# select 1+null;
?column?
----------
(1 row)
```
error, can't deduce
```sql
=# select null+null;
ERROR: operator is not unique: unknown + unknown
LINE 1: select null+null;
^
HINT: Could not choose a best candidate operator. You might need to add explicit type casts.
leiysky=#
```
--
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@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org