Skip to content

Bump sqlglot[c] from 30.4.3 to 30.7.0 to fix has_bit_strings TypeError#1886

Merged
rolandwalker merged 1 commit into
dbcli:mainfrom
Linuxdazhao:fix/sqlglot-30.7-compatibility
May 11, 2026
Merged

Bump sqlglot[c] from 30.4.3 to 30.7.0 to fix has_bit_strings TypeError#1886
rolandwalker merged 1 commit into
dbcli:mainfrom
Linuxdazhao:fix/sqlglot-30.7-compatibility

Conversation

@Linuxdazhao
Copy link
Copy Markdown

Problem

sqlglot 30.4.3 ships a mypyc-compiled tokenizer_core.cpython-*.so where the Python wrapper does not pass the has_bit_strings argument to the compiled extension:

TypeError: __init__() missing required argument 'has_bit_strings' (pos 16)

This crashes mycli on any statement that triggers sqlglot.tokenize() — including show databases, because the redirection logic in sql_utils.py calls it.

Affected environment:

  • mycli 1.72.0
  • Python 3.14
  • sqlglot 30.4.3 (installed via brew dependency chain)

Fix

Bump sqlglot[c] from ~= 30.4.3 to ~= 30.7.0.

sqlglot 30.7.0 (released 2026-05-04) fixes the tokenizer initialization issue. See sqlglot v30.7.0 changelog.

Verification

Manually tested by upgrading sqlglot to 30.7.0 in the mycli venv — mycli -e "show databases" works correctly.

Related

sqlglot 30.4.3 ships a mypyc-compiled tokenizer_core.cpython-*.so where
the Python wrapper does not pass the has_bit_strings argument to the
compiled extension, causing a TypeError on any statement that triggers
sqlglot.tokenize() (e.g. show databases).

sqlglot 30.7.0 (released 2026-05-04) fixes this issue.
@Linuxdazhao
Copy link
Copy Markdown
Author

The codex-review CI job fails because the OpenAI Codex action requires write access to the repo. As an external contributor, I only have read access. This is unrelated to the code change. Maintainers can safely ignore this failure.

@rolandwalker rolandwalker merged commit d77550e into dbcli:main May 11, 2026
9 of 10 checks passed
@rolandwalker
Copy link
Copy Markdown
Contributor

Thank you!

@Linuxdazhao Linuxdazhao deleted the fix/sqlglot-30.7-compatibility branch May 11, 2026 09:21
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.

sqlglot[c]~=30.4.3 crashes with 'has_bit_strings' TypeError

2 participants