Skip to content

Commit

Permalink
add jackson ignore field
Browse files Browse the repository at this point in the history
  • Loading branch information
JNSimba committed Jan 22, 2025
1 parent 7a60cb3 commit 325f843
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ public void setRows(List<BackendRowV2> rows) {
this.backends = rows;
}

@JsonIgnoreProperties(ignoreUnknown = true)
public static class BackendRowV2 implements Cloneable{

public BackendRowV2(){
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,11 @@

package org.apache.doris.spark.rest.models;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

import java.util.Objects;

@JsonIgnoreProperties(ignoreUnknown = true)
public class Field {
private String name;
private String type;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,12 @@

package org.apache.doris.spark.rest.models;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

import java.util.Map;
import java.util.Objects;

@JsonIgnoreProperties(ignoreUnknown = true)
public class QueryPlan {
private int status;
private String opaqued_query_plan;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,13 @@

package org.apache.doris.spark.rest.models;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

import java.util.ArrayList;
import java.util.List;
import java.util.Objects;

@JsonIgnoreProperties(ignoreUnknown = true)
public class Schema {

private int status = 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,12 @@

package org.apache.doris.spark.rest.models;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

import java.util.List;
import java.util.Objects;

@JsonIgnoreProperties(ignoreUnknown = true)
public class Tablet {
private List<String> routings;
private int version;
Expand Down

0 comments on commit 325f843

Please sign in to comment.