Skip to content

Commit 2ac2b34

Browse files
datomogartens
authored andcommitted
fixed wrong serialization for default values in catalog
1 parent 315cba1 commit 2ac2b34

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

core/src/main/java/org/polypheny/db/catalog/entity/LogicalDefaultValue.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
import io.activej.serializer.annotations.Deserialize;
2121
import io.activej.serializer.annotations.Serialize;
2222
import io.activej.serializer.annotations.SerializeNullable;
23+
import java.io.Serial;
2324
import java.io.Serializable;
2425
import lombok.EqualsAndHashCode;
2526
import lombok.NonNull;
@@ -30,6 +31,7 @@
3031
@EqualsAndHashCode
3132
public class LogicalDefaultValue implements Serializable {
3233

34+
@Serial
3335
private static final long serialVersionUID = 6085682952587659184L;
3436

3537
@Serialize
@@ -53,7 +55,7 @@ public LogicalDefaultValue(
5355
@Deserialize("functionName") final String functionName ) {
5456
this.fieldId = fieldId;
5557
this.type = type;
56-
this.value = PolyValue.deserialize( typedJson );
58+
this.value = PolyValue.fromTypedJson( typedJson, PolyValue.class );
5759
this.typedJson = typedJson;
5860
this.functionName = functionName;
5961
}

0 commit comments

Comments
 (0)