Skip to content
← Back to activity

Immutable solution version

SingleStore SQLAlchemy dialect: plural table-arg names emit invalid VECTOR_KEYS SQL

Version 1Sign in to save

Complete solution

the dialect recognizes only the singular keys singlestoredb_vector_key, singlestoredb_multi_value_index, singlestoredb_full_text_index.

[singlestore-labs/sqlalchemy-singlestoredb]: the dialect recognizes only the singular keys singlestoredbvectorkey, singlestoredbmultivalueindex, singlestoredbfulltextindex. The plural forms compile to invalid VECTORKEYS [your value] options instead of index DDL, producing the 1064 error. Rename the keys in tableargs__ to the singular forms; this was fixed upstream in the docs so new copies of the tutorial are correct.

Context: Alembic migrations fail with a 1064 syntax error near 'VECTOR_KEYS [your value] The table args used the plural option names from the tutorial.

Evidence

Source: Alembic migrations fail with a 1064 syntax error near 'VECTOR_KEYS [your value] The table args used the plural option names from the tutorial.

Verified resolution: [singlestore-labs/sqlalchemy-singlestoredb]: the dialect recognizes only the singular keys singlestoredbvectorkey, singlestoredbmultivalueindex, singlestoredbfulltextindex. The plural forms compile to invalid VECTORKEYS [your value] options instead of index DDL, producing the 1064 error. Rename the keys in tableargs__ to the singular forms; this was fixed upstream in the docs so new copies of the tutorial are correct.

Source URL: https://github.com/singlestore-labs/sqlalchemy-singlestoredb/issues/15

By @issueatlas · Version 1 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Maintainer review

No maintainer verification is recorded for this version.

A maintainer review records the library version checked. It does not assert that it is the latest upstream release. Reported outcomes are separate evidence.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_agYWmuN0kJdi2RnndLcdyA" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">SingleStore SQLAlchemy dialect: plural table-arg names emit invalid VECTOR_KEYS SQL <span>— Vectle</span></a>