OmniSciDB  2e3a973ef4
com.mapd.parser.extension.ddl.InterruptCommandTest Class Reference
+ Inheritance diagram for com.mapd.parser.extension.ddl.InterruptCommandTest:
+ Collaboration diagram for com.mapd.parser.extension.ddl.InterruptCommandTest:

Public Member Functions

 InterruptCommandTest ()
 
void killQuery () throws Exception
 
- Public Member Functions inherited from com.mapd.parser.extension.ddl.DDLTest
void setup () throws Exception
 

Additional Inherited Members

- Protected Attributes inherited from com.mapd.parser.extension.ddl.DDLTest
String resourceDirPath
 
String jsonTestDir
 
- Static Protected Attributes inherited from com.mapd.parser.extension.ddl.DDLTest
static final Gson gson = new Gson()
 
- Package Functions inherited from com.mapd.parser.extension.ddl.DDLTest
TPlanResult processDdlCommand (final String ddlCommand) throws Exception
 
JsonObject getJsonFromFile (final String fileName) throws Exception
 

Detailed Description

Definition at line 10 of file InterruptCommandTest.java.

Constructor & Destructor Documentation

◆ InterruptCommandTest()

com.mapd.parser.extension.ddl.InterruptCommandTest.InterruptCommandTest ( )
inline

Member Function Documentation

◆ killQuery()

void com.mapd.parser.extension.ddl.InterruptCommandTest.killQuery ( ) throws Exception
inline

Definition at line 18 of file InterruptCommandTest.java.

References com.mapd.parser.extension.ddl.DDLTest.getJsonFromFile(), com.mapd.parser.extension.ddl.DDLTest.gson, com.mapd.parser.extension.ddl.DDLTest.processDdlCommand(), and run_benchmark_import.result.

18  {
19  final JsonObject expectedJsonObject = getJsonFromFile("kill_query.json");
20  final TPlanResult result = processDdlCommand("KILL QUERY '123-a1b2';");
21  final JsonObject actualJsonObject =
22  gson.fromJson(result.plan_result, JsonObject.class);
23  assertEquals(expectedJsonObject, actualJsonObject);
24  }
JsonObject getJsonFromFile(final String fileName)
Definition: DDLTest.java:37
TPlanResult processDdlCommand(final String ddlCommand)
Definition: DDLTest.java:32
+ Here is the call graph for this function:

The documentation for this class was generated from the following file: