Skip to content

Commit 08c4b06

Browse files
committed
Improve error message when failed to pushdown limit
Signed-off-by: Yuanchun Shen <yuanchu@amazon.com>
1 parent eeae4e9 commit 08c4b06

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

opensearch/src/main/java/org/opensearch/sql/opensearch/storage/scan/CalciteLogicalIndexScan.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -175,11 +175,7 @@ public CalciteLogicalIndexScan pushDownLimit(Integer limit, Integer offset) {
175175
requestBuilder -> requestBuilder.pushDownLimit(limit, offset)));
176176
return newScan;
177177
} catch (Exception e) {
178-
if (LOG.isDebugEnabled()) {
179-
LOG.debug("Cannot pushdown the limit {}", limit, e);
180-
} else {
181-
LOG.warn("Cannot pushdown the limit {}, ", limit);
182-
}
178+
LOG.debug("Cannot pushdown limit {} with offset {}. Exception: {}", limit, offset, e);
183179
}
184180
return null;
185181
}

0 commit comments

Comments
 (0)