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;
13 resourceDirPath = ReassignOwnedTest.class.getClassLoader().getResource(
"").getPath();
19 final JsonObject expectedJsonObject =
getJsonFromFile(
"reassign_owned.json");
22 final JsonObject actualJsonObject =
23 gson.fromJson(result.plan_result, JsonObject.class);
24 assertEquals(expectedJsonObject, actualJsonObject);
29 final JsonObject expectedJsonObject =
getJsonFromFile(
"reassign_all_owned.json");
32 final JsonObject actualJsonObject =
33 gson.fromJson(result.plan_result, JsonObject.class);
34 assertEquals(expectedJsonObject, actualJsonObject);
JsonObject getJsonFromFile(final String fileName)
TPlanResult processDdlCommand(final String ddlCommand)