1 package com.mapd.parser.extension.ddl;
3 import static org.junit.Assert.assertEquals;
5 import com.google.gson.JsonObject;
9 import ai.heavy.thrift.calciteserver.TPlanResult;
14 InterruptCommandTest.class.getClassLoader().getResource(
"").getPath();
20 final JsonObject expectedJsonObject =
getJsonFromFile(
"kill_query.json");
22 final JsonObject actualJsonObject =
23 gson.fromJson(result.plan_result, JsonObject.class);
24 assertEquals(expectedJsonObject, actualJsonObject);
29 final JsonObject expectedJsonObject =
getJsonFromFile(
"alter_system_clear_cpu.json");
31 final JsonObject actualJsonObject =
32 gson.fromJson(result.plan_result, JsonObject.class);
33 assertEquals(expectedJsonObject, actualJsonObject);
38 final JsonObject expectedJsonObject =
getJsonFromFile(
"alter_system_clear_gpu.json");
40 final JsonObject actualJsonObject =
41 gson.fromJson(result.plan_result, JsonObject.class);
42 assertEquals(expectedJsonObject, actualJsonObject);
47 final JsonObject expectedJsonObject =
50 final JsonObject actualJsonObject =
51 gson.fromJson(result.plan_result, JsonObject.class);
52 assertEquals(expectedJsonObject, actualJsonObject);
57 final JsonObject expectedJsonObject =
61 final JsonObject actualJsonObject =
62 gson.fromJson(result.plan_result, JsonObject.class);
63 assertEquals(expectedJsonObject, actualJsonObject);
68 final JsonObject expectedJsonObject =
72 final JsonObject actualJsonObject =
73 gson.fromJson(result.plan_result, JsonObject.class);
74 assertEquals(expectedJsonObject, actualJsonObject);
JsonObject getJsonFromFile(final String fileName)
void alterSystemClear_gpu()
void alterSystemClear_render()
TPlanResult processDdlCommand(final String ddlCommand)
void alterSessionSetExecutor_gpu()
void alterSystemClear_cpu()
void alterSessionSetExecutor_cpu()