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

presto to hive translator not translating ARRAY_JOIN which is not a function in hive #1558

Closed
sarahsiedlecki opened this issue May 5, 2023 · 2 comments
Assignees

Comments

@sarahsiedlecki
Copy link

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

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

ARRAY_JOIN is not being translated. the Hive function is CONCAT_WS

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

https://cwiki.apache.org/confluence/display/hive/languagemanual+udf

@tobymao tobymao self-assigned this May 5, 2023
@tobymao
Copy link
Owner

tobymao commented May 5, 2023

@sarahsiedlecki are you sure this is right?concat_ws doens't work with arrays

@tobymao
Copy link
Owner

tobymao commented May 5, 2023

ah i found it now, please can you put more info in your issues so i don't have to dig?

@tobymao tobymao closed this as completed in ac60698 May 5, 2023
adrianisk pushed a commit to adrianisk/sqlglot that referenced this issue Jun 21, 2023
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

2 participants