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

CrateDB does not understand CREATE INDEX #191

Open
amotl opened this issue Dec 22, 2024 · 0 comments
Open

CrateDB does not understand CREATE INDEX #191

amotl opened this issue Dec 22, 2024 · 0 comments

Comments

@amotl
Copy link
Member

amotl commented Dec 22, 2024

Problem

When a model includes a column definition like this,

idx = Column(Integer, index=True)

the CrateDB SQLAlchemy dialect trips.

E               sqlalchemy.exc.ProgrammingError: (crate.client.exceptions.ProgrammingError) SQLParseException[line 1:8: no viable alternative at input 'CREATE INDEX']
E               [SQL: CREATE INDEX ix_full_md5_llm_cache_llm ON full_md5_llm_cache (llm)]
E               (Background on this error at: https://sqlalche.me/e/20/f405)

../../../.venv/lib/python3.12/site-packages/crate/client/http.py:238: ProgrammingError
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

1 participant