Jefffrey commented on issue #8795:
URL: https://github.com/apache/datafusion/issues/8795#issuecomment-3920998334
Looks like we're consistent with integers too:
```sql
psql (18.2 (Debian 18.2-1.pgdg13+1))
Type "help" for help.
postgres=# select pg_typeof(1);
pg_typeof
-----------
integer
(1 row)
postgres=# select pg_typeof(floor(1));
pg_typeof
------------------
double precision
(1 row)
```
DF:
```sql
DataFusion CLI v52.1.0
> select floor(1);
+-----------------+
| floor(Int64(1)) |
+-----------------+
| 1.0 |
+-----------------+
1 row(s) fetched.
Elapsed 0.059 seconds.
> select arrow_typeof(floor(1));
+-------------------------------+
| arrow_typeof(floor(Int64(1))) |
+-------------------------------+
| Float64 |
+-------------------------------+
1 row(s) fetched.
Elapsed 0.008 seconds.
```
Thanks for checking @theirix
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]