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 = InsertValuesTest.class.getClassLoader().getResource(
"").getPath();
19 final JsonObject expectedJsonObject =
getJsonFromFile(
"insert_values.json");
22 +
"false, 102938.503924850192312354312345312, 43.12,"
23 +
" {'foo', NULL, 'bar'});");
24 final JsonObject actualJsonObject =
25 gson.fromJson(result.plan_result, JsonObject.class);
26 assertEquals(expectedJsonObject, actualJsonObject);
JsonObject getJsonFromFile(final String fileName)
TPlanResult processDdlCommand(final String ddlCommand)