Skip to content

Update example in docstring so query output is valid Spark SQL #95

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

Merged
merged 1 commit into from
Mar 21, 2023

Conversation

susodapop
Copy link
Contributor

Description

This is a no-code change. It updates the docstring for client.execute() to show a valid query output.

Our parameter escaper wraps all strings in single quotes (') which can't be used for table names. The example prior to this commit is how the escaper would render the input strings based on the parameter provided, but the output is not valid Spark SQL because table names cannot be string literals.

Related Tickets and Documents

Closes #94

@susodapop susodapop merged commit d684bf8 into main Mar 21, 2023
@susodapop susodapop deleted the issue94 branch March 21, 2023 20:11
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 this pull request may close these issues.

cursor.execute(query, params) error while trying to set table name
2 participants