You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Binhua Hu (Jira)" <ji...@apache.org> on 2024/12/09 12:14:00 UTC
[jira] [Closed] (CALCITE-6722) The abnormal return of the Scrolling class in the elasticsearch module is not standardized
[ https://issues.apache.org/jira/browse/CALCITE-6722?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Binhua Hu closed CALCITE-6722.
------------------------------
Resolution: Not A Problem
> The abnormal return of the Scrolling class in the elasticsearch module is not standardized
> -------------------------------------------------------------------------------------------
>
> Key: CALCITE-6722
> URL: https://issues.apache.org/jira/browse/CALCITE-6722
> Project: Calcite
> Issue Type: Bug
> Components: elasticsearch-adapter
> Affects Versions: 1.38.0
> Reporter: Binhua Hu
> Priority: Major
> Fix For: 1.39.0
>
>
> In the query method,
> {code:java}
> Iterator<ElasticsearchJson.SearchHit> query(ObjectNode query) {
> requireNonNull(query, "query");
> final long limit;
> if (query.has("size")) {
> limit = query.get("size").asLong();
> if (fetchSize > limit) {
> // don't use scrolling when batch size is greater than limit
> return transport.search().apply(query).searchHits().hits().iterator();
> }
> } else {
> limit = Long.MAX_VALUE;
> } {code}
> Abnormal information is not standard, should prompt 'query is null'
--
This message was sent by Atlassian Jira
(v8.20.10#820010)