[test](ut) added UT cases for show build index (#29561)

Added UT case for show build index flow
This commit is contained in:
Nitin-Kashyap
2024-01-24 11:29:33 +05:30
committed by yiguolei
parent ca5a314765
commit cd70f45ce2
2 changed files with 243 additions and 5 deletions

View File

@ -40,10 +40,11 @@ import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
// SHOW LOAD STATUS statement used to get status of load job.
// SHOW BUILD INDEX statement used to get status of build index job.
//
// syntax:
// SHOW LOAD [FROM db] [LIKE mask]
// SHOW BUILD INDEX [FROM db] [WHERE <condition>]
// [ORDER BY [DESC|ASC] [NULLS LAST | NULLS FIRST]]] [ LIMIT 1, 100]
public class ShowBuildIndexStmt extends ShowStmt {
private static final Logger LOG = LogManager.getLogger(ShowBuildIndexStmt.class);
@ -96,9 +97,7 @@ public class ShowBuildIndexStmt extends ShowStmt {
}
// analyze where clause if not null
if (whereClause != null) {
analyzeSubPredicate(whereClause);
}
analyzeSubPredicate(whereClause);
// order by
if (orderByElements != null && !orderByElements.isEmpty()) {