Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Fix inline list parameter rendering for IN clauses#773

Open
fatkobra wants to merge 2 commits into
databricks:maindatabricks/databricks-sql-python:mainfrom
fatkobra:Fix-inline-list-param-rendering-for-IN-clausesfatkobra/databricks-sql-python:Fix-inline-list-param-rendering-for-IN-clausesCopy head branch name to clipboard
Open

Fix inline list parameter rendering for IN clauses#773
fatkobra wants to merge 2 commits into
databricks:maindatabricks/databricks-sql-python:mainfrom
fatkobra:Fix-inline-list-param-rendering-for-IN-clausesfatkobra/databricks-sql-python:Fix-inline-list-param-rendering-for-IN-clausesCopy head branch name to clipboard

Conversation

@fatkobra
Copy link
Copy Markdown

What type of PR is this?

  • Refactor
  • Feature
  • Bug Fix
  • Other

Description

Fixes #629
Closes #629

Summary

  • add regression tests for inline list parameters used in IN clauses
  • render top-level inline list parameters as (…) instead of ARRAY(…)
  • keep nested sequence escaping behavior unchanged

How is this tested?

  • poetry run python -m pytest tests/unit/test_param_escaper.py

  • poetry run python -m pytest tests/unit/test_parameters.py tests/unit/test_param_escaper.py

  • poetry run python -m pytest tests/unit

  • poetry run python -m black src tests --check

  • Unit tests

  • E2E Tests

  • Manually

  • N/A

Related Tickets & Documents

Closes #629

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.

Compiled sql for an input list parameter results in incorrect syntax in 4.0.4

1 participant

Morty Proxy This is a proxified and sanitized view of the page, visit original site.