1 package com.mapd.parser.extension.ddl;
3 import static org.junit.Assert.assertEquals;
5 import com.google.gson.Gson;
6 import com.google.gson.JsonObject;
11 import ai.heavy.thrift.calciteserver.TPlanResult;
15 resourceDirPath = AlterDatabaseTest.class.getClassLoader().getResource(
"").getPath();
21 final JsonObject expectedJsonObject =
25 final JsonObject actualJsonObject =
26 gson.fromJson(result.plan_result, JsonObject.class);
28 assertEquals(expectedJsonObject, actualJsonObject);
33 final JsonObject expectedJsonObject =
getJsonFromFile(
"alter_database_rename.json");
36 final JsonObject actualJsonObject =
37 gson.fromJson(result.plan_result, JsonObject.class);
39 assertEquals(expectedJsonObject, actualJsonObject);
JsonObject getJsonFromFile(final String fileName)
void AlterDatabaseRename()
TPlanResult processDdlCommand(final String ddlCommand)
void AlterDatabaseChangeOwner()