Skip to content

Commit 3c55b65

Browse files
committed
Fix
1 parent 5c0a768 commit 3c55b65

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

core/src/main/java/com/scalar/db/common/CoreError.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -889,6 +889,12 @@ public enum CoreError implements ScalarDbError {
889889
"Object Storage does not support the feature for altering column types",
890890
"",
891891
""),
892+
OBJECT_STORAGE_CLUSTERING_KEY_BLOB_TYPE_NOT_SUPPORTED(
893+
Category.USER_ERROR,
894+
"0256",
895+
"The BLOB type is not supported for clustering keys in Object Storage. Column: %s",
896+
"",
897+
""),
892898

893899
//
894900
// Errors for the concurrency error category

core/src/main/java/com/scalar/db/storage/objectstorage/ObjectStorageAdmin.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ private void checkMetadata(TableMetadata metadata) {
477477
for (String clusteringKeyName : metadata.getClusteringKeyNames()) {
478478
if (metadata.getColumnDataType(clusteringKeyName) == DataType.BLOB) {
479479
throw new IllegalArgumentException(
480-
CoreError.COSMOS_CLUSTERING_KEY_BLOB_TYPE_NOT_SUPPORTED.buildMessage(
480+
CoreError.OBJECT_STORAGE_CLUSTERING_KEY_BLOB_TYPE_NOT_SUPPORTED.buildMessage(
481481
clusteringKeyName));
482482
}
483483
}

0 commit comments

Comments
 (0)