1 package com.mapd.parser.extension.ddl;
3 import static org.junit.Assert.assertEquals;
4 import static org.junit.Assert.fail;
6 import com.google.gson.Gson;
7 import com.google.gson.JsonObject;
10 import com.
omnisci.thrift.calciteserver.TPlanResult;
12 import org.junit.Before;
14 import java.io.FileReader;
15 import java.util.ArrayList;
19 protected static final Gson
gson =
new Gson();
24 public void setup() throws Exception {
27 resourceDirPath +
"ast/test_extension_functions.ast",
33 return calciteServerHandler.
process(
34 "",
"",
"", ddlCommand,
new ArrayList<>(),
false,
false,
false);
38 final String filePath = resourceDirPath +
"json/ddl/" + jsonTestDir +
"/" + fileName;
39 return gson.fromJson(
new FileReader(filePath), JsonObject.class);
JsonObject getJsonFromFile(final String fileName)
CalciteServerHandler calciteServerHandler
TPlanResult processDdlCommand(final String ddlCommand)
static SockTransportProperties getUnencryptedClient()
TPlanResult process(String user, String session, String catalog, String queryText, java.util.List< TFilterPushDownInfo > thriftFilterPushDownInfo, boolean legacySyntax, boolean isExplain, boolean isViewOptimize)