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

Insert overwrite with and without partition aren't parsed properly #147

Closed
Appalled opened this issue May 22, 2023 · 1 comment · Fixed by #148
Closed

Insert overwrite with and without partition aren't parsed properly #147

Appalled opened this issue May 22, 2023 · 1 comment · Fixed by #148

Comments

@Appalled
Copy link

Hi, the following queries aren't parsed properly. Please have a look.
sparksql syntax reference

insert overwrite data_base_name.tb_name_01 
partition ( key1 = '20230522' ,key2 = 'bb')
SELECT *
  FROM 
data_base_name.tb_name_00
;

insert overwrite data_base_name.tb_name_02
SELECT
  a1.col_a,
  a1.col_b
FROM 
(
  SELECT
    *
  FROM
    data_base_name.tb_name_01 
  WHERE
    key1 >= 'bb'
) a1

two queries:
image

just the second query
image

@matthias-Q
Copy link
Collaborator

Thanks for reporting. Be aware that, after #148 is merged, we need to create a PR for nvim-treesitter to register the keyword overwrite because that is new.

This is the first Spark SQL syntax that we have implemented. There will definitely be more things that are parsed correctly!

@matthias-Q matthias-Q removed their assignment May 23, 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

Successfully merging a pull request may close this issue.

2 participants