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

Remove sqlparse.compat import#38

Merged
susodapop merged 1 commit into
databricks:maindatabricks/databricks-sql-cli:mainfrom
kfollesdal:kfollesdal/sqlparse-compatkfollesdal/databricks-sql-cli:kfollesdal/sqlparse-compatCopy head branch name to clipboard
Apr 24, 2023
Merged

Remove sqlparse.compat import#38
susodapop merged 1 commit into
databricks:maindatabricks/databricks-sql-cli:mainfrom
kfollesdal:kfollesdal/sqlparse-compatkfollesdal/databricks-sql-cli:kfollesdal/sqlparse-compatCopy head branch name to clipboard

Conversation

@kfollesdal

Copy link
Copy Markdown
Contributor

sqlparse do no longer have sqlparse.compat. It was removed in version 0.4. It is missing from GitHub source and sqlparse-0.4.2.tar.gz from PyPI. But it exist in sqlparse-0.4.2-py3-none-any.whl from PyPi for some strang reasone.

Since databricks-sql-cli import 'text_type' form sqlparse.compat it will faile if you install sqlparse in any other way other than wheel.

sqlparse was remooved in the following commit:
andialbrecht/sqlparse@3e3892f 'text_type' was replaced with 'str' so we do the same in databricks-sql-cli.

sqlparse do no longer have sqlparse.compat. It was removed in version 0.4.
It is missing from GitHub source and sqlparse-0.4.2.tar.gz from PyPI. But
it exist in sqlparse-0.4.2-py3-none-any.whl from PyPi for some strang reasone.

Since databricks-sql-cli import 'text_type' form sqlparse.compat it will faile if you install
sqlparse in any other way other than wheel.

sqlparse was remooved in the following commit:
andialbrecht/sqlparse@3e3892f
'text_type' was replaced with 'str' so we do the same in databricks-sql-cli.

@susodapop susodapop left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix!

@susodapop susodapop merged commit f022940 into databricks:main Apr 24, 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 this pull request may close these issues.

2 participants

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