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

[hive-dialect] row_number() over (distribute by fund_account sort by bus_date desc) as sort_id ; not support #606

Open
zhengtingxue opened this issue Apr 30, 2024 · 1 comment
Labels
bug Something isn't working question Further information is requested

Comments

@zhengtingxue
Copy link

bad_sql:
insert into table a select
row_number() over (distribute by a sort by b desc) as sort_id
from b;

@zhengtingxue zhengtingxue added the bug Something isn't working label Apr 30, 2024
@delphisharp
Copy link
Contributor

  1. I hope the questions can be filled in in detail according to the template.
  2. From hive official documentation https://cwiki.apache.org/confluence/display/Hive/LanguageManual+WindowingAndAnalytics, I don’t see support for similar syntax.
  3. If hive does support it, I think the correct solution path is:
    a: hive docment is supplemented first.
    b. https://github.com/sqlfluff follow-up support
    c. https://github.com/reata/sqllineage follow-up support

@reata reata added the question Further information is requested label May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants