Skip to content

Commit

Permalink
Compression.NONE is now default compression when creating an entity.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ralph Gasser committed Mar 18, 2024
1 parent ca9ad89 commit 5fbe059
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ import org.vitrivr.cottontail.dbms.queries.operators.physical.definition.*
import org.vitrivr.cottontail.dbms.queries.operators.physical.sort.InMemorySortPhysicalOperatorNode
import org.vitrivr.cottontail.dbms.schema.Schema
import org.vitrivr.cottontail.grpc.CottontailGrpc
import org.vitrivr.cottontail.grpc.CottontailGrpc.ColumnDefinition.Compression.NONE
import org.vitrivr.cottontail.grpc.CottontailGrpc.ColumnDefinition.Compression.SNAPPY
import org.vitrivr.cottontail.grpc.CottontailGrpc.ColumnDefinition.Compression.*
import org.vitrivr.cottontail.grpc.DDLGrpcKt
import org.vitrivr.cottontail.storage.serializers.tablets.Compression
import kotlin.time.ExperimentalTime
Expand Down Expand Up @@ -69,9 +68,9 @@ class DDLService(override val catalogue: DefaultCatalogue, val autoRebuilderServ
val type = Types.forName(it.type.name, it.length)
val name = entityName.column(it.name.name) /* To make sure that columns belongs to entity. */
val compression = when (it.compression) {
NONE -> Compression.NONE
SNAPPY -> Compression.SNAPPY
else -> Compression.LZ4
LZ4 -> Compression.LZ4
else -> Compression.NONE
}
name to ColumnMetadata(type, compression, it.nullable, it.primary, it.autoIncrement)
}
Expand Down

0 comments on commit 5fbe059

Please sign in to comment.