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

Escape backtick from spark-submit arguments #415

Open
s0nskar opened this issue Aug 24, 2023 · 3 comments
Open

Escape backtick from spark-submit arguments #415

s0nskar opened this issue Aug 24, 2023 · 3 comments

Comments

@s0nskar
Copy link

s0nskar commented Aug 24, 2023

Currently, livy does not escape backticks from user-provided spark-submit arguments. So if a customer is passing any arguments that contain backticks, it will be considered as command substitution during spark-submit causing that argument to become blank or invalid.

Example:

--query 'select * from test_db.`test_table`' 

will become

--query 'select * from test_db.' 
@s0nskar
Copy link
Author

s0nskar commented Aug 24, 2023

cc: @pralabhkumar

@s0nskar
Copy link
Author

s0nskar commented Aug 24, 2023

I'm working on this.

@RonZhang724
Copy link

@s0nskar Thank you for working on this. My company uses AWS EMR for our data processing tasks. EMR uses livy to handle job submissions, and we noticed the same issue when submitting queries with backticks. This has resulted us having to change the queries on our side. And it prevented us from using dot notations in our query ALIAS.

For example, the following will not work

  COALESCE(
    `measure`.`region`,
  ) AS `measure_alias.region_alias`

It would be nice if we could have this change included in the up coming livy releases.

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