From e308c6adf669881aabbb77069ae8cacd31cc4ee3 Mon Sep 17 00:00:00 2001 From: yito88 Date: Tue, 27 Feb 2024 11:25:28 +0100 Subject: [PATCH] fix the val type in the schema --- scalardb/src/scalardb/elle_append.clj | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scalardb/src/scalardb/elle_append.clj b/scalardb/src/scalardb/elle_append.clj index 0b4f226..1bdf047 100644 --- a/scalardb/src/scalardb/elle_append.clj +++ b/scalardb/src/scalardb/elle_append.clj @@ -11,6 +11,7 @@ (:import (com.scalar.db.api Get Put) (com.scalar.db.io IntValue + TextValue Key) (com.scalar.db.exception.transaction UnknownTransactionStatusException))) @@ -21,7 +22,7 @@ (def ^:const SCHEMA {:transaction true :partition-key [ID] :clustering-key [] - :columns {(keyword ID) "INT" (keyword VALUE) "INT"}}) + :columns {(keyword ID) "INT" (keyword VALUE) "TEXT"}}) (defn prepare-get [table id] @@ -36,7 +37,7 @@ (Put.) (.forNamespace KEYSPACE) (.forTable table) - (.withValue (IntValue. VALUE value)))) + (.withValue (TextValue. VALUE value)))) (defn get-value [r]