mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-11 03:58:14 +00:00
fix: Caused by: java.io.NotSerializableException: DateConf、SchemaNameLengthComparator、SqlEvaluation and etc. (#2110)
This commit is contained in:
@@ -109,7 +109,7 @@ public class SemanticParseInfo implements Serializable {
|
||||
}
|
||||
}
|
||||
|
||||
private static class SchemaNameLengthComparator implements Comparator<SchemaElement> {
|
||||
private static class SchemaNameLengthComparator implements Comparator<SchemaElement>, Serializable {
|
||||
@Override
|
||||
public int compare(SchemaElement o1, SchemaElement o2) {
|
||||
if (o1.getOrder() != o2.getOrder()) {
|
||||
|
||||
@@ -2,8 +2,11 @@ package com.tencent.supersonic.headless.api.pojo;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
@Data
|
||||
public class SqlEvaluation {
|
||||
public class SqlEvaluation implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
private Boolean isValidated;
|
||||
private String validateMsg;
|
||||
|
||||
@@ -2,8 +2,11 @@ package com.tencent.supersonic.headless.api.pojo;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
@Data
|
||||
public class SqlInfo {
|
||||
public class SqlInfo implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
// S2SQL generated by semantic parsers
|
||||
private String parsedS2SQL;
|
||||
|
||||
Reference in New Issue
Block a user