SQLCostCommand extends MultiClusterCommandBase { public SQLCostCommand(String commandText, ExecutionContext context) { super(commandText, context); } SQLCostCommand(String commandText, ExecutionContext context); static void printUsage(PrintStream out); void run(); @Override void writeResult(String queryResult); static SQLCostCommand parse(String commandString, ExecutionContext sessionContext); static final String[] HELP_TAGS; }
@Test public void testSQLCostCommand() throws ODPSConsoleException, OdpsException { ExecutionContext context = ExecutionContext.init(); String cmd = "COST SQL select count(key) from src;"; SQLCostCommand command = SQLCostCommand.parse(cmd, context); assertNotNull(command); command.run(); }