mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-10 19:51:00 +00:00
fix: Caused by: java.io.NotSerializableException: DateConf、SchemaNameLengthComparator、SqlEvaluation and etc. (#2110)
This commit is contained in:
@@ -5,6 +5,7 @@ import com.tencent.supersonic.common.util.DateUtils;
|
|||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
import org.springframework.util.CollectionUtils;
|
import org.springframework.util.CollectionUtils;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
@@ -12,7 +13,7 @@ import java.util.Objects;
|
|||||||
import static java.time.LocalDate.now;
|
import static java.time.LocalDate.now;
|
||||||
|
|
||||||
@Data
|
@Data
|
||||||
public class DateConf {
|
public class DateConf implements Serializable {
|
||||||
|
|
||||||
private static final long serialVersionUID = 3074129990945004340L;
|
private static final long serialVersionUID = 3074129990945004340L;
|
||||||
|
|
||||||
|
|||||||
@@ -2,8 +2,11 @@ package com.tencent.supersonic.common.pojo;
|
|||||||
|
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
|
||||||
@Data
|
@Data
|
||||||
public class PageBaseReq {
|
public class PageBaseReq implements Serializable {
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
private static final Integer MAX_PAGESIZE = 100;
|
private static final Integer MAX_PAGESIZE = 100;
|
||||||
private Integer current = 1;
|
private Integer current = 1;
|
||||||
|
|||||||
@@ -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
|
@Override
|
||||||
public int compare(SchemaElement o1, SchemaElement o2) {
|
public int compare(SchemaElement o1, SchemaElement o2) {
|
||||||
if (o1.getOrder() != o2.getOrder()) {
|
if (o1.getOrder() != o2.getOrder()) {
|
||||||
|
|||||||
@@ -2,8 +2,11 @@ package com.tencent.supersonic.headless.api.pojo;
|
|||||||
|
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
|
||||||
@Data
|
@Data
|
||||||
public class SqlEvaluation {
|
public class SqlEvaluation implements Serializable {
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
private Boolean isValidated;
|
private Boolean isValidated;
|
||||||
private String validateMsg;
|
private String validateMsg;
|
||||||
|
|||||||
@@ -2,8 +2,11 @@ package com.tencent.supersonic.headless.api.pojo;
|
|||||||
|
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
|
||||||
@Data
|
@Data
|
||||||
public class SqlInfo {
|
public class SqlInfo implements Serializable {
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
// S2SQL generated by semantic parsers
|
// S2SQL generated by semantic parsers
|
||||||
private String parsedS2SQL;
|
private String parsedS2SQL;
|
||||||
|
|||||||
Reference in New Issue
Block a user