Search in sources :

Example 1 with HiveCommand

use of org.apache.hadoop.hive.ql.processors.HiveCommand in project hive by apache.

the class QTestUtil method isCommandUsedForTesting.

private boolean isCommandUsedForTesting(final String command) {
    String commandName = command.trim().split("\\s+")[0];
    HiveCommand testCommand = HiveCommand.find(new String[] { commandName }, HiveCommand.ONLY_FOR_TESTING);
    return testCommand != null;
}
Also used : HiveCommand(org.apache.hadoop.hive.ql.processors.HiveCommand)

Aggregations

HiveCommand (org.apache.hadoop.hive.ql.processors.HiveCommand)1