liujiwen-up commented on issue #41182:
URL: https://github.com/apache/doris/issues/41182#issuecomment-2371221221
This syntax is not standard Hive syntax. Currently, this non-standard
writing method will conflict with normal digital addition and subtraction.
The standard syntax in Hive is
`select (cast('2000-08-19' as date) + interval 14 days) from table_name.`
This Hive SQL can be accurately converted
`SELECT CAST('2000-08-19' AS DATE) + INTERVAL '14' DAY from table_name`
SQL-Converter will automatically change the unit from `days` to` day` so
that it can be executed correctly in doris
--
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]