OmniSciDB  085a039ca4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
com.mapd.parser.extension.ddl.InsertValuesTest Class Reference
+ Inheritance diagram for com.mapd.parser.extension.ddl.InsertValuesTest:
+ Collaboration diagram for com.mapd.parser.extension.ddl.InsertValuesTest:

Public Member Functions

 InsertValuesTest ()
 
void insertValues () throws Exception
 
- Public Member Functions inherited from com.mapd.parser.extension.ddl.DDLTest
void setup () throws Exception
 

Additional Inherited Members

- Protected Attributes inherited from com.mapd.parser.extension.ddl.DDLTest
String resourceDirPath
 
String jsonTestDir
 
- Static Protected Attributes inherited from com.mapd.parser.extension.ddl.DDLTest
static final Gson gson = new Gson()
 
- Package Functions inherited from com.mapd.parser.extension.ddl.DDLTest
TPlanResult processDdlCommand (final String ddlCommand) throws Exception
 
JsonObject getJsonFromFile (final String fileName) throws Exception
 

Detailed Description

Definition at line 11 of file InsertValuesTest.java.

Constructor & Destructor Documentation

com.mapd.parser.extension.ddl.InsertValuesTest.InsertValuesTest ( )
inline

Definition at line 12 of file InsertValuesTest.java.

References com.mapd.parser.extension.ddl.DDLTest.jsonTestDir, and com.mapd.parser.extension.ddl.DDLTest.resourceDirPath.

12  {
13  resourceDirPath = InsertValuesTest.class.getClassLoader().getResource("").getPath();
14  jsonTestDir = "insert";
15  }

Member Function Documentation

void com.mapd.parser.extension.ddl.InsertValuesTest.insertValues ( ) throws Exception
inline

Definition at line 18 of file InsertValuesTest.java.

References com.mapd.parser.extension.ddl.DDLTest.getJsonFromFile(), com.mapd.parser.extension.ddl.DDLTest.processDdlCommand(), and run_benchmark_import.result.

18  {
19  final JsonObject expectedJsonObject = getJsonFromFile("insert_values.json");
20  final TPlanResult result =
21  processDdlCommand("insert into t(a, b, d, n, ar) values (123786239487123, "
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);
27  }
JsonObject getJsonFromFile(final String fileName)
Definition: DDLTest.java:50
TPlanResult processDdlCommand(final String ddlCommand)
Definition: DDLTest.java:35

+ Here is the call graph for this function:


The documentation for this class was generated from the following file: