Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(clickhouse) date_add usage is different from other dialects #2108

Closed
liujiwen-up opened this issue Aug 23, 2023 · 0 comments
Closed

(clickhouse) date_add usage is different from other dialects #2108

liujiwen-up opened this issue Aug 23, 2023 · 0 comments

Comments

@liujiwen-up
Copy link
Contributor

Before you file an issue

  • Make sure you specify the "read" dialect eg. parse_one(sql, read="spark")
  • Check if the issue still exists on main

https://clickhouse.com/docs/zh/sql-reference/functions/date-time-functions#date_add
There is a big change in the position of the parameter
example:
SELECT date_add(YEAR, 3, toDate('2018-01-01'));

It is hoped that the conversion of this function to other dialects will be supported

Fully reproducible code snippet
Please include a fully reproducible code snippet or the input sql, dialect, and expected output.

Official Documentation
Please include links to official SQL documentation related to your issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant