Closed jvelezmagic closed 2 months ago
Hi @jvelezmagic! Thank you for bringing this to our attention. In SingleStore, the SORT KEY()
is not allowed when using CREATE ROWSTORE TABLE
. However, there is no such restriction for shard keys. Therefore, I suggest retaining only the sort key check in the if-statement. If you encounter any issues with shard keys, could you please share the version of the adapter you're using and a model that triggers the problem?
added sort key check in #28
Summary: This PR addresses a compatibility issue in Singlestore for incremental models using
shard_key
orsort_key
. Previously, attempting to use these keys would fail due to an incorrect assumption that temporary tables are rowstore, which is not supported by Singlestore forCLUSTERED COLUMNAR
indexes.Details:
shard_key
orsort_key
couldn't be deployed as incremental tables because the system tried to create them as rowstore temporary tables, conflicting with Singlestore's requirements.shard_key
orsort_key
, it's created as a "temporary" table (compatible with these keys), otherwise, it defaults to "rowstore temporary".