Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package ai.chronon.integrations.aws

import ai.chronon.api.Constants
import ai.chronon.online.KVStore
import ai.chronon.online.KVStore.GetResponse
import ai.chronon.online.KVStore.ListRequest
Expand Down Expand Up @@ -53,7 +54,7 @@ object DynamoDBKVStoreConstants {
val partitionKeyColumn = "keyBytes"

// Name of the time sort key column to use
val sortKeyColumn = "timestamp"
val sortKeyColumn = Constants.TimeColumn

// TODO: tune these
val defaultReadCapacityUnits = 10L
Expand Down Expand Up @@ -89,7 +90,7 @@ class DynamoDBKVStoreImpl(dynamoDbClient: DynamoDbClient) extends KVStore {
val request =
CreateTableRequest.builder
.attributeDefinitions(keyAttributes.toList.asJava)
.keySchema(keySchema.toList.asJava)
.keySchema(keySchema.toList.asJava)"keyBytes"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue

Remove unintended string literal in keySchema construction

There's an unexpected string literal "keyBytes" added to the keySchema construction. This appears to be unintentional and could cause compilation errors or runtime issues.

Please remove the string literal as follows:

-        .keySchema(keySchema.toList.asJava)"keyBytes"
+        .keySchema(keySchema.toList.asJava)
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
.keySchema(keySchema.toList.asJava)"keyBytes"
.keySchema(keySchema.toList.asJava)

.provisionedThroughput(ProvisionedThroughput.builder.readCapacityUnits(rcu).writeCapacityUnits(wcu).build)
.tableName(dataset)
.build
Expand Down
Loading