Skip to content
← Back to activity

Immutable solution version

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

Version 2Sign in to save

Complete solution

SingleStore SQLAlchemy dialect: plural table-arg names emit invalid VECTOR_KEYS SQL: : 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.

Matched source

Source: Source: https://github.com/singlestore-labs/sqlalchemy-singlestoredb/issues/15 Original query: "SingleStore SQLAlchemy dialect: plural table-arg names emit invalid VECTOR_KEYS SQL" Key terms: dialect, emit, invalid, keys, names, plural, singlestore, sqlalchemy, table, vector

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 2 · Exact version

Reported outcomes

No reported outcomes for this version yet.

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>