SQL: Handle rename in core
Original commit: elastic/x-pack-elasticsearch@32cd41e6c8
This commit is contained in:
parent
6631fe0376
commit
116807ef54
|
@ -26,7 +26,7 @@ import java.util.Objects;
|
||||||
import static java.util.Collections.unmodifiableList;
|
import static java.util.Collections.unmodifiableList;
|
||||||
import static org.elasticsearch.common.xcontent.ConstructingObjectParser.constructorArg;
|
import static org.elasticsearch.common.xcontent.ConstructingObjectParser.constructorArg;
|
||||||
import static org.elasticsearch.common.xcontent.ConstructingObjectParser.optionalConstructorArg;
|
import static org.elasticsearch.common.xcontent.ConstructingObjectParser.optionalConstructorArg;
|
||||||
import static org.elasticsearch.common.xcontent.XContentParserUtils.parseStoredFieldsValue;
|
import static org.elasticsearch.common.xcontent.XContentParserUtils.parseFieldsValue;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Response to perform an sql query
|
* Response to perform an sql query
|
||||||
|
@ -217,7 +217,7 @@ public class SqlQueryResponse extends ActionResponse implements ToXContentObject
|
||||||
List<Object> list = new ArrayList<>();
|
List<Object> list = new ArrayList<>();
|
||||||
while (parser.nextToken() != XContentParser.Token.END_ARRAY) {
|
while (parser.nextToken() != XContentParser.Token.END_ARRAY) {
|
||||||
if (parser.currentToken().isValue()) {
|
if (parser.currentToken().isValue()) {
|
||||||
list.add(parseStoredFieldsValue(parser));
|
list.add(parseFieldsValue(parser));
|
||||||
} else if (parser.currentToken() == XContentParser.Token.VALUE_NULL) {
|
} else if (parser.currentToken() == XContentParser.Token.VALUE_NULL) {
|
||||||
list.add(null);
|
list.add(null);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue