[test](ut) added UT cases for show build index (#29561)
Added UT case for show build index flow
This commit is contained in:
@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user