edmondop commented on issue #6876: URL: https://github.com/apache/datafusion/issues/6876#issuecomment-2621668103
@DanCodedThis and @alamb I looked at [snowflake documentation](https://docs.snowflake.com/en/sql-reference/functions/dateadd), [Spark documentation](https://spark.apache.org/docs/latest/api/python/reference/pyspark.sql/api/pyspark.sql.functions.date_add.html) and [postgres documentation](https://www.postgresql.org/docs/current/functions-datetime.html) - Postgres provide a generic API that's based on Intervals - Snowflake provides a simpler API where you provide the interval as a combination of timeUnit * number of units - Spark supports only days as a timeunit Implementing the Postgres approach seems the most flexible solution, and then we can implement a Snowflake dialect maybe to parse a snowflake-like UDF invocation into the Postgres-style? -- 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-unsubscr...@datafusion.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org For additional commands, e-mail: github-h...@datafusion.apache.org