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 = AlterTableTest.class.getClassLoader().getResource(
"").getPath();
21 final JsonObject expectedJsonObject =
24 "ALTER TABLE test ALTER COLUMN a TYPE decimal(5,2) NULL, ALTER COLUMN b SET DATA TYPE TEXT NOT NULL ENCODING DICT(32);");
25 final JsonObject actualJsonObject =
26 gson.fromJson(result.plan_result, JsonObject.class);
28 assertEquals(expectedJsonObject, actualJsonObject);
JsonObject getJsonFromFile(final String fileName)
void AlterTableAlterColumn()
TPlanResult processDdlCommand(final String ddlCommand)