You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "watfordkcf (via GitHub)" <gi...@apache.org> on 2023/07/10 12:50:52 UTC
[GitHub] [arrow-datafusion] watfordkcf commented on issue #6876: support: Date +/plus Int or date_add function
watfordkcf commented on issue #6876:
URL: https://github.com/apache/arrow-datafusion/issues/6876#issuecomment-1628895757
It takes integers:
```
spark-sql (default)> SELECT date_add(CAST(now() AS DATE), 1.5);
[DATATYPE_MISMATCH.UNEXPECTED_INPUT_TYPE] Cannot resolve "date_add(CAST(now() AS DATE), 1.5)" due to data type mismatch: Parameter 2 requires the ("INT" or "SMALLINT" or "TINYINT") type, however "1.5" has the type "DECIMAL(2,1)".; line 1 pos 7;
'Project [unresolvedalias(date_add(cast(now() as date), 1.5), None)]
+- OneRowRelation
```
--
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