Skip to content

Commit a338232

Browse files
handle gocql null map conversion
1 parent 5f340cd commit a338232

File tree

1 file changed

+5
-0
lines changed
  • common/persistence/nosql/nosqlplugin/cassandra

1 file changed

+5
-0
lines changed

common/persistence/nosql/nosqlplugin/cassandra/tasks.go

+5
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,11 @@ func toTaskListPartitionConfig(v interface{}) *persistence.TaskListPartitionConf
8989
version := partition["version"].(int64)
9090
numRead := partition["num_read_partitions"].(int)
9191
numWrite := partition["num_write_partitions"].(int)
92+
93+
if version == 0 && numRead == 0 && numWrite == 0 {
94+
return nil
95+
}
96+
9297
return &persistence.TaskListPartitionConfig{
9398
Version: version,
9499
NumReadPartitions: numRead,

0 commit comments

Comments
 (0)