OmniSciDB  2e3a973ef4
com.mapd.parser.extension.ddl.ForeignTableTest Class Reference
+ Inheritance diagram for com.mapd.parser.extension.ddl.ForeignTableTest:
+ Collaboration diagram for com.mapd.parser.extension.ddl.ForeignTableTest:

Public Member Functions

 ForeignTableTest ()
 
void createForeignTableOneCol () throws Exception
 
void createForeignTableDecimal () throws Exception
 
void createForeignTableDoubleDecimal () throws Exception
 
void createForeignTableIfNotExists () throws Exception
 
void createForeignTableTwoCol () throws Exception
 
void createForeignTableNotNull () throws Exception
 
void createForeignTableEncodingDict8 () throws Exception
 
void createForeignTableEncodingDict () throws Exception
 
void createForeignTableEncodingNone () throws Exception
 
void createForeignTableEncodingFixed1 () throws Exception
 
void createForeignTableEncodingDays1 () throws Exception
 
void createForeignTableEncodingCompressed32 () throws Exception
 
void createForeignTableEncodingCompressed () throws Exception
 
void createForeignTableEncodingNone1 () throws Exception
 
void createForeignTableEncodingFixedWithoutSize () throws Exception
 
void createForeignTableEncodingDaysWithoutSize () throws Exception
 
void createForeignTableColOptions () throws Exception
 
void createForeignTableOptions () throws Exception
 
void createForeignTableEscapeOption () throws Exception
 
void createForeignTableSchema () throws Exception
 
void createForeignTablePoint () throws Exception
 
void createForeignTableGeoPoint () throws Exception
 
void createForeignTableLinestring () throws Exception
 
void createForeignTablePolygon () throws Exception
 
void createForeignTableMultiPolygon () throws Exception
 
void createForeignTableGeoPointMerc () throws Exception
 
void createForeignTableGeoPointWG () throws Exception
 
void createForeignTablePointCompressed () throws Exception
 
void createForeignTableBigInt () throws Exception
 
void createForeignTableBoolean () throws Exception
 
void createForeignTableDate () throws Exception
 
void createForeignTableDouble () throws Exception
 
void createForeignTableEpoch () throws Exception
 
void createForeignTableFloat () throws Exception
 
void createForeignTableSmallInt () throws Exception
 
void createForeignTableTime () throws Exception
 
void createForeignTableTimestamp () throws Exception
 
void createForeignTableTinyInt () throws Exception
 
void createForeignTableArraySized () throws Exception
 
void createForeignTableArrayUnsized () throws Exception
 
void dropForeignTable () throws Exception
 
void dropForeignTableIfExists () throws Exception
 
void refresh_foreign_table () throws Exception
 
void refresh_foreign_tables () throws Exception
 
void refresh_foreign_table_with_evict () 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 14 of file ForeignTableTest.java.

Constructor & Destructor Documentation

◆ ForeignTableTest()

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

Member Function Documentation

◆ createForeignTableArraySized()

void com.mapd.parser.extension.ddl.ForeignTableTest.createForeignTableArraySized ( ) throws Exception
inline

Definition at line 407 of file ForeignTableTest.java.

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

407  {
408  final JsonObject expectedJsonObject = getJsonFromFile("cft_ArraySized.json");
409  final TPlanResult result = processDdlCommand(
410  "CREATE FOREIGN TABLE test_table (test_column_1 INTEGER[5]) SERVER test_server;");
411  final JsonObject actualJsonObject =
412  gson.fromJson(result.plan_result, JsonObject.class);
413  assertEquals(expectedJsonObject, actualJsonObject);
414  }
JsonObject getJsonFromFile(final String fileName)
Definition: DDLTest.java:37
TPlanResult processDdlCommand(final String ddlCommand)
Definition: DDLTest.java:32
+ Here is the call graph for this function:

◆ createForeignTableArrayUnsized()

void com.mapd.parser.extension.ddl.ForeignTableTest.createForeignTableArrayUnsized ( ) throws Exception
inline

Definition at line 417 of file ForeignTableTest.java.

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

417  {
418  final JsonObject expectedJsonObject = getJsonFromFile("cft_ArrayUnsized.json");
419  final TPlanResult result = processDdlCommand(
420  "CREATE FOREIGN TABLE test_table (test_column_1 INTEGER[]) SERVER test_server;");
421  final JsonObject actualJsonObject =
422  gson.fromJson(result.plan_result, JsonObject.class);
423  assertEquals(expectedJsonObject, actualJsonObject);
424  }
JsonObject getJsonFromFile(final String fileName)
Definition: DDLTest.java:37
TPlanResult processDdlCommand(final String ddlCommand)
Definition: DDLTest.java:32
+ Here is the call graph for this function:

◆ createForeignTableBigInt()

void com.mapd.parser.extension.ddl.ForeignTableTest.createForeignTableBigInt ( ) throws Exception
inline

Definition at line 307 of file ForeignTableTest.java.

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

307  {
308  final JsonObject expectedJsonObject = getJsonFromFile("cft_BigInt.json");
309  final TPlanResult result = processDdlCommand(
310  "CREATE FOREIGN TABLE test_table (test_column_1 BIGINT) SERVER test_server;");
311  final JsonObject actualJsonObject =
312  gson.fromJson(result.plan_result, JsonObject.class);
313  assertEquals(expectedJsonObject, actualJsonObject);
314  }
JsonObject getJsonFromFile(final String fileName)
Definition: DDLTest.java:37
TPlanResult processDdlCommand(final String ddlCommand)
Definition: DDLTest.java:32
+ Here is the call graph for this function:

◆ createForeignTableBoolean()

void com.mapd.parser.extension.ddl.ForeignTableTest.createForeignTableBoolean ( ) throws Exception
inline

Definition at line 317 of file ForeignTableTest.java.

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

317  {
318  final JsonObject expectedJsonObject = getJsonFromFile("cft_Boolean.json");
319  final TPlanResult result = processDdlCommand(
320  "CREATE FOREIGN TABLE test_table (test_column_1 BOOLEAN) SERVER test_server;");
321  final JsonObject actualJsonObject =
322  gson.fromJson(result.plan_result, JsonObject.class);
323  assertEquals(expectedJsonObject, actualJsonObject);
324  }
JsonObject getJsonFromFile(final String fileName)
Definition: DDLTest.java:37
TPlanResult processDdlCommand(final String ddlCommand)
Definition: DDLTest.java:32
+ Here is the call graph for this function:

◆ createForeignTableColOptions()

void com.mapd.parser.extension.ddl.ForeignTableTest.createForeignTableColOptions ( ) throws Exception
inline

Definition at line 183 of file ForeignTableTest.java.

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

183  {
184  final JsonObject expectedJsonObject = getJsonFromFile("cft_ColOptions.json");
185  final TPlanResult result =
186  processDdlCommand("CREATE FOREIGN TABLE test_table (test_column_1 INTEGER "
187  + "WITH ( option_1 = 'value_1', option_2 = 2)) SERVER test_server;");
188  final JsonObject actualJsonObject =
189  gson.fromJson(result.plan_result, JsonObject.class);
190  assertEquals(expectedJsonObject, actualJsonObject);
191  }
JsonObject getJsonFromFile(final String fileName)
Definition: DDLTest.java:37
TPlanResult processDdlCommand(final String ddlCommand)
Definition: DDLTest.java:32
+ Here is the call graph for this function:

◆ createForeignTableDate()

void com.mapd.parser.extension.ddl.ForeignTableTest.createForeignTableDate ( ) throws Exception
inline

Definition at line 327 of file ForeignTableTest.java.

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

327  {
328  final JsonObject expectedJsonObject = getJsonFromFile("cft_Date.json");
329  final TPlanResult result = processDdlCommand(
330  "CREATE FOREIGN TABLE test_table (test_column_1 DATE) SERVER test_server;");
331  final JsonObject actualJsonObject =
332  gson.fromJson(result.plan_result, JsonObject.class);
333  assertEquals(expectedJsonObject, actualJsonObject);
334  }
JsonObject getJsonFromFile(final String fileName)
Definition: DDLTest.java:37
TPlanResult processDdlCommand(final String ddlCommand)
Definition: DDLTest.java:32
+ Here is the call graph for this function:

◆ createForeignTableDecimal()

void com.mapd.parser.extension.ddl.ForeignTableTest.createForeignTableDecimal ( ) throws Exception
inline

Definition at line 31 of file ForeignTableTest.java.

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

31  {
32  final JsonObject expectedJsonObject = getJsonFromFile("cft_Decimal.json");
33  final TPlanResult result = processDdlCommand(
34  "CREATE FOREIGN TABLE test_table (test_column_1 DECIMAL(10, 6)) SERVER test_server;");
35  final JsonObject actualJsonObject =
36  gson.fromJson(result.plan_result, JsonObject.class);
37  assertEquals(expectedJsonObject, actualJsonObject);
38  }
JsonObject getJsonFromFile(final String fileName)
Definition: DDLTest.java:37
TPlanResult processDdlCommand(final String ddlCommand)
Definition: DDLTest.java:32
+ Here is the call graph for this function:

◆ createForeignTableDouble()

void com.mapd.parser.extension.ddl.ForeignTableTest.createForeignTableDouble ( ) throws Exception
inline

Definition at line 337 of file ForeignTableTest.java.

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

337  {
338  final JsonObject expectedJsonObject = getJsonFromFile("cft_Double.json");
339  final TPlanResult result = processDdlCommand(
340  "CREATE FOREIGN TABLE test_table (test_column_1 DOUBLE) SERVER test_server;");
341  final JsonObject actualJsonObject =
342  gson.fromJson(result.plan_result, JsonObject.class);
343  assertEquals(expectedJsonObject, actualJsonObject);
344  }
JsonObject getJsonFromFile(final String fileName)
Definition: DDLTest.java:37
TPlanResult processDdlCommand(final String ddlCommand)
Definition: DDLTest.java:32
+ Here is the call graph for this function:

◆ createForeignTableDoubleDecimal()

void com.mapd.parser.extension.ddl.ForeignTableTest.createForeignTableDoubleDecimal ( ) throws Exception
inline

Definition at line 41 of file ForeignTableTest.java.

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

41  {
42  final JsonObject expectedJsonObject = getJsonFromFile("cft_Decimal.json");
43  final TPlanResult result = processDdlCommand(
44  "CREATE FOREIGN TABLE test_table (test_column_1 DECIMAL(10, 6)(11,5)) SERVER test_server;");
45  final JsonObject actualJsonObject =
46  gson.fromJson(result.plan_result, JsonObject.class);
47  assertEquals(expectedJsonObject, actualJsonObject);
48  }
JsonObject getJsonFromFile(final String fileName)
Definition: DDLTest.java:37
TPlanResult processDdlCommand(final String ddlCommand)
Definition: DDLTest.java:32
+ Here is the call graph for this function:

◆ createForeignTableEncodingCompressed()

void com.mapd.parser.extension.ddl.ForeignTableTest.createForeignTableEncodingCompressed ( ) throws Exception
inline

Definition at line 151 of file ForeignTableTest.java.

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

151  {
152  final JsonObject expectedJsonObject = getJsonFromFile("cft_Encoding_Compressed.json");
153  final TPlanResult result = processDdlCommand(
154  "CREATE FOREIGN TABLE test_table (test_column_1 TEXT ENCODING COMPRESSED) "
155  + "SERVER test_server");
156  final JsonObject actualJsonObject =
157  gson.fromJson(result.plan_result, JsonObject.class);
158  assertEquals(expectedJsonObject, actualJsonObject);
159  }
JsonObject getJsonFromFile(final String fileName)
Definition: DDLTest.java:37
TPlanResult processDdlCommand(final String ddlCommand)
Definition: DDLTest.java:32
+ Here is the call graph for this function:

◆ createForeignTableEncodingCompressed32()

void com.mapd.parser.extension.ddl.ForeignTableTest.createForeignTableEncodingCompressed32 ( ) throws Exception
inline

Definition at line 139 of file ForeignTableTest.java.

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

139  {
140  final JsonObject expectedJsonObject =
141  getJsonFromFile("cft_Encoding_Compressed32.json");
142  final TPlanResult result = processDdlCommand(
143  "CREATE FOREIGN TABLE test_table (test_column_1 TEXT ENCODING COMPRESSED(32)) "
144  + "SERVER test_server");
145  final JsonObject actualJsonObject =
146  gson.fromJson(result.plan_result, JsonObject.class);
147  assertEquals(expectedJsonObject, actualJsonObject);
148  }
JsonObject getJsonFromFile(final String fileName)
Definition: DDLTest.java:37
TPlanResult processDdlCommand(final String ddlCommand)
Definition: DDLTest.java:32
+ Here is the call graph for this function:

◆ createForeignTableEncodingDays1()

void com.mapd.parser.extension.ddl.ForeignTableTest.createForeignTableEncodingDays1 ( ) throws Exception
inline

Definition at line 128 of file ForeignTableTest.java.

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

128  {
129  final JsonObject expectedJsonObject = getJsonFromFile("cft_Encoding_Days1.json");
130  final TPlanResult result = processDdlCommand(
131  "CREATE FOREIGN TABLE test_table (test_column_1 TEXT ENCODING DAYS(1)) "
132  + "SERVER test_server");
133  final JsonObject actualJsonObject =
134  gson.fromJson(result.plan_result, JsonObject.class);
135  assertEquals(expectedJsonObject, actualJsonObject);
136  }
JsonObject getJsonFromFile(final String fileName)
Definition: DDLTest.java:37
TPlanResult processDdlCommand(final String ddlCommand)
Definition: DDLTest.java:32
+ Here is the call graph for this function:

◆ createForeignTableEncodingDaysWithoutSize()

void com.mapd.parser.extension.ddl.ForeignTableTest.createForeignTableEncodingDaysWithoutSize ( ) throws Exception
inline

Definition at line 176 of file ForeignTableTest.java.

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

176  {
177  final TPlanResult result = processDdlCommand(
178  "CREATE FOREIGN TABLE test_table (test_column_1 TEXT ENCODING DAYS) "
179  + "SERVER test_server");
180  }
TPlanResult processDdlCommand(final String ddlCommand)
Definition: DDLTest.java:32
+ Here is the call graph for this function:

◆ createForeignTableEncodingDict()

void com.mapd.parser.extension.ddl.ForeignTableTest.createForeignTableEncodingDict ( ) throws Exception
inline

Definition at line 95 of file ForeignTableTest.java.

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

95  {
96  final JsonObject expectedJsonObject = getJsonFromFile("cft_Encoding_Dict.json");
97  final TPlanResult result = processDdlCommand(
98  "CREATE FOREIGN TABLE test_table (test_column_1 TEXT ENCODING DICT) "
99  + "SERVER test_server");
100  final JsonObject actualJsonObject =
101  gson.fromJson(result.plan_result, JsonObject.class);
102  assertEquals(expectedJsonObject, actualJsonObject);
103  }
JsonObject getJsonFromFile(final String fileName)
Definition: DDLTest.java:37
TPlanResult processDdlCommand(final String ddlCommand)
Definition: DDLTest.java:32
+ Here is the call graph for this function:

◆ createForeignTableEncodingDict8()

void com.mapd.parser.extension.ddl.ForeignTableTest.createForeignTableEncodingDict8 ( ) throws Exception
inline

Definition at line 84 of file ForeignTableTest.java.

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

84  {
85  final JsonObject expectedJsonObject = getJsonFromFile("cft_Encoding_Dict8.json");
86  final TPlanResult result = processDdlCommand(
87  "CREATE FOREIGN TABLE test_table (test_column_1 TEXT ENCODING DICT(8)) "
88  + "SERVER test_server");
89  final JsonObject actualJsonObject =
90  gson.fromJson(result.plan_result, JsonObject.class);
91  assertEquals(expectedJsonObject, actualJsonObject);
92  }
JsonObject getJsonFromFile(final String fileName)
Definition: DDLTest.java:37
TPlanResult processDdlCommand(final String ddlCommand)
Definition: DDLTest.java:32
+ Here is the call graph for this function:

◆ createForeignTableEncodingFixed1()

void com.mapd.parser.extension.ddl.ForeignTableTest.createForeignTableEncodingFixed1 ( ) throws Exception
inline

Definition at line 117 of file ForeignTableTest.java.

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

117  {
118  final JsonObject expectedJsonObject = getJsonFromFile("cft_Encoding_Fixed1.json");
119  final TPlanResult result = processDdlCommand(
120  "CREATE FOREIGN TABLE test_table (test_column_1 TEXT ENCODING FIXED(1)) "
121  + "SERVER test_server");
122  final JsonObject actualJsonObject =
123  gson.fromJson(result.plan_result, JsonObject.class);
124  assertEquals(expectedJsonObject, actualJsonObject);
125  }
JsonObject getJsonFromFile(final String fileName)
Definition: DDLTest.java:37
TPlanResult processDdlCommand(final String ddlCommand)
Definition: DDLTest.java:32
+ Here is the call graph for this function:

◆ createForeignTableEncodingFixedWithoutSize()

void com.mapd.parser.extension.ddl.ForeignTableTest.createForeignTableEncodingFixedWithoutSize ( ) throws Exception
inline

Definition at line 169 of file ForeignTableTest.java.

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

169  {
170  final TPlanResult result = processDdlCommand(
171  "CREATE FOREIGN TABLE test_table (test_column_1 TEXT ENCODING FIXED) "
172  + "SERVER test_server");
173  }
TPlanResult processDdlCommand(final String ddlCommand)
Definition: DDLTest.java:32
+ Here is the call graph for this function:

◆ createForeignTableEncodingNone()

void com.mapd.parser.extension.ddl.ForeignTableTest.createForeignTableEncodingNone ( ) throws Exception
inline

Definition at line 106 of file ForeignTableTest.java.

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

106  {
107  final JsonObject expectedJsonObject = getJsonFromFile("cft_Encoding_None.json");
108  final TPlanResult result = processDdlCommand(
109  "CREATE FOREIGN TABLE test_table (test_column_1 TEXT ENCODING NONE) "
110  + "SERVER test_server");
111  final JsonObject actualJsonObject =
112  gson.fromJson(result.plan_result, JsonObject.class);
113  assertEquals(expectedJsonObject, actualJsonObject);
114  }
JsonObject getJsonFromFile(final String fileName)
Definition: DDLTest.java:37
TPlanResult processDdlCommand(final String ddlCommand)
Definition: DDLTest.java:32
+ Here is the call graph for this function:

◆ createForeignTableEncodingNone1()

void com.mapd.parser.extension.ddl.ForeignTableTest.createForeignTableEncodingNone1 ( ) throws Exception
inline

Definition at line 162 of file ForeignTableTest.java.

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

162  {
163  final TPlanResult result = processDdlCommand(
164  "CREATE FOREIGN TABLE test_table (test_column_1 TEXT ENCODING NONE(1)) "
165  + "SERVER test_server");
166  }
TPlanResult processDdlCommand(final String ddlCommand)
Definition: DDLTest.java:32
+ Here is the call graph for this function:

◆ createForeignTableEpoch()

void com.mapd.parser.extension.ddl.ForeignTableTest.createForeignTableEpoch ( ) throws Exception
inline

Definition at line 347 of file ForeignTableTest.java.

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

347  {
348  final JsonObject expectedJsonObject = getJsonFromFile("cft_Epoch.json");
349  final TPlanResult result = processDdlCommand(
350  "CREATE FOREIGN TABLE test_table (test_column_1 EPOCH) SERVER test_server;");
351  final JsonObject actualJsonObject =
352  gson.fromJson(result.plan_result, JsonObject.class);
353  assertEquals(expectedJsonObject, actualJsonObject);
354  }
JsonObject getJsonFromFile(final String fileName)
Definition: DDLTest.java:37
TPlanResult processDdlCommand(final String ddlCommand)
Definition: DDLTest.java:32
+ Here is the call graph for this function:

◆ createForeignTableEscapeOption()

void com.mapd.parser.extension.ddl.ForeignTableTest.createForeignTableEscapeOption ( ) throws Exception
inline

Definition at line 205 of file ForeignTableTest.java.

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

205  {
206  final JsonObject expectedJsonObject = getJsonFromFile("cft_EscapeOption.json");
207  final TPlanResult result =
208  processDdlCommand("CREATE FOREIGN TABLE test_table (test_column_1 INTEGER) "
209  + "SERVER test_server WITH ( escape = '\\');");
210  final JsonObject actualJsonObject =
211  gson.fromJson(result.plan_result, JsonObject.class);
212  assertEquals(expectedJsonObject, actualJsonObject);
213  }
JsonObject getJsonFromFile(final String fileName)
Definition: DDLTest.java:37
TPlanResult processDdlCommand(final String ddlCommand)
Definition: DDLTest.java:32
+ Here is the call graph for this function:

◆ createForeignTableFloat()

void com.mapd.parser.extension.ddl.ForeignTableTest.createForeignTableFloat ( ) throws Exception
inline

Definition at line 357 of file ForeignTableTest.java.

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

357  {
358  final JsonObject expectedJsonObject = getJsonFromFile("cft_Float.json");
359  final TPlanResult result = processDdlCommand(
360  "CREATE FOREIGN TABLE test_table (test_column_1 FLOAT) SERVER test_server;");
361  final JsonObject actualJsonObject =
362  gson.fromJson(result.plan_result, JsonObject.class);
363  assertEquals(expectedJsonObject, actualJsonObject);
364  }
JsonObject getJsonFromFile(final String fileName)
Definition: DDLTest.java:37
TPlanResult processDdlCommand(final String ddlCommand)
Definition: DDLTest.java:32
+ Here is the call graph for this function:

◆ createForeignTableGeoPoint()

void com.mapd.parser.extension.ddl.ForeignTableTest.createForeignTableGeoPoint ( ) throws Exception
inline

Definition at line 237 of file ForeignTableTest.java.

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

237  {
238  final JsonObject expectedJsonObject = getJsonFromFile("cft_Point.json");
239  final TPlanResult result = processDdlCommand(
240  "CREATE FOREIGN TABLE test_table (test_column_1 GEOMETRY(POINT)) SERVER test_server;");
241  final JsonObject actualJsonObject =
242  gson.fromJson(result.plan_result, JsonObject.class);
243  assertEquals(expectedJsonObject, actualJsonObject);
244  }
JsonObject getJsonFromFile(final String fileName)
Definition: DDLTest.java:37
TPlanResult processDdlCommand(final String ddlCommand)
Definition: DDLTest.java:32
+ Here is the call graph for this function:

◆ createForeignTableGeoPointMerc()

void com.mapd.parser.extension.ddl.ForeignTableTest.createForeignTableGeoPointMerc ( ) throws Exception
inline

Definition at line 277 of file ForeignTableTest.java.

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

277  {
278  final JsonObject expectedJsonObject = getJsonFromFile("cft_GeoPointMerc.json");
279  final TPlanResult result = processDdlCommand(
280  "CREATE FOREIGN TABLE test_table (test_column_1 GEOMETRY(POINT, 900913)) SERVER test_server;");
281  final JsonObject actualJsonObject =
282  gson.fromJson(result.plan_result, JsonObject.class);
283  assertEquals(expectedJsonObject, actualJsonObject);
284  }
JsonObject getJsonFromFile(final String fileName)
Definition: DDLTest.java:37
TPlanResult processDdlCommand(final String ddlCommand)
Definition: DDLTest.java:32
+ Here is the call graph for this function:

◆ createForeignTableGeoPointWG()

void com.mapd.parser.extension.ddl.ForeignTableTest.createForeignTableGeoPointWG ( ) throws Exception
inline

Definition at line 287 of file ForeignTableTest.java.

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

287  {
288  final JsonObject expectedJsonObject = getJsonFromFile("cft_GeoPointWG.json");
289  final TPlanResult result = processDdlCommand(
290  "CREATE FOREIGN TABLE test_table (test_column_1 GEOMETRY(POINT, 4326)) SERVER test_server;");
291  final JsonObject actualJsonObject =
292  gson.fromJson(result.plan_result, JsonObject.class);
293  assertEquals(expectedJsonObject, actualJsonObject);
294  }
JsonObject getJsonFromFile(final String fileName)
Definition: DDLTest.java:37
TPlanResult processDdlCommand(final String ddlCommand)
Definition: DDLTest.java:32
+ Here is the call graph for this function:

◆ createForeignTableIfNotExists()

void com.mapd.parser.extension.ddl.ForeignTableTest.createForeignTableIfNotExists ( ) throws Exception
inline

Definition at line 51 of file ForeignTableTest.java.

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

51  {
52  final JsonObject expectedJsonObject = getJsonFromFile("cft_IfNotExists.json");
53  final TPlanResult result = processDdlCommand(
54  "CREATE FOREIGN TABLE IF NOT EXISTS test_table (test_column_1 INTEGER) "
55  + "SERVER test_server;");
56  final JsonObject actualJsonObject =
57  gson.fromJson(result.plan_result, JsonObject.class);
58  assertEquals(expectedJsonObject, actualJsonObject);
59  }
JsonObject getJsonFromFile(final String fileName)
Definition: DDLTest.java:37
TPlanResult processDdlCommand(final String ddlCommand)
Definition: DDLTest.java:32
+ Here is the call graph for this function:

◆ createForeignTableLinestring()

void com.mapd.parser.extension.ddl.ForeignTableTest.createForeignTableLinestring ( ) throws Exception
inline

Definition at line 247 of file ForeignTableTest.java.

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

247  {
248  final JsonObject expectedJsonObject = getJsonFromFile("cft_Linestring.json");
249  final TPlanResult result = processDdlCommand(
250  "CREATE FOREIGN TABLE test_table (test_column_1 LINESTRING) SERVER test_server;");
251  final JsonObject actualJsonObject =
252  gson.fromJson(result.plan_result, JsonObject.class);
253  assertEquals(expectedJsonObject, actualJsonObject);
254  }
JsonObject getJsonFromFile(final String fileName)
Definition: DDLTest.java:37
TPlanResult processDdlCommand(final String ddlCommand)
Definition: DDLTest.java:32
+ Here is the call graph for this function:

◆ createForeignTableMultiPolygon()

void com.mapd.parser.extension.ddl.ForeignTableTest.createForeignTableMultiPolygon ( ) throws Exception
inline

Definition at line 267 of file ForeignTableTest.java.

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

267  {
268  final JsonObject expectedJsonObject = getJsonFromFile("cft_MultiPolygon.json");
269  final TPlanResult result = processDdlCommand(
270  "CREATE FOREIGN TABLE test_table (test_column_1 MULTIPOLYGON) SERVER test_server;");
271  final JsonObject actualJsonObject =
272  gson.fromJson(result.plan_result, JsonObject.class);
273  assertEquals(expectedJsonObject, actualJsonObject);
274  }
JsonObject getJsonFromFile(final String fileName)
Definition: DDLTest.java:37
TPlanResult processDdlCommand(final String ddlCommand)
Definition: DDLTest.java:32
+ Here is the call graph for this function:

◆ createForeignTableNotNull()

void com.mapd.parser.extension.ddl.ForeignTableTest.createForeignTableNotNull ( ) throws Exception
inline

Definition at line 73 of file ForeignTableTest.java.

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

73  {
74  final JsonObject expectedJsonObject = getJsonFromFile("cft_NotNull.json");
75  final TPlanResult result = processDdlCommand(
76  "CREATE FOREIGN TABLE test_table (test_column_1 INTEGER NOT NULL) "
77  + "SERVER test_server;");
78  final JsonObject actualJsonObject =
79  gson.fromJson(result.plan_result, JsonObject.class);
80  assertEquals(expectedJsonObject, actualJsonObject);
81  }
JsonObject getJsonFromFile(final String fileName)
Definition: DDLTest.java:37
TPlanResult processDdlCommand(final String ddlCommand)
Definition: DDLTest.java:32
+ Here is the call graph for this function:

◆ createForeignTableOneCol()

void com.mapd.parser.extension.ddl.ForeignTableTest.createForeignTableOneCol ( ) throws Exception
inline

Definition at line 21 of file ForeignTableTest.java.

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

21  {
22  final JsonObject expectedJsonObject = getJsonFromFile("cft_OneCol.json");
23  final TPlanResult result = processDdlCommand(
24  "CREATE FOREIGN TABLE test_table (test_column_1 INTEGER) SERVER test_server;");
25  final JsonObject actualJsonObject =
26  gson.fromJson(result.plan_result, JsonObject.class);
27  assertEquals(expectedJsonObject, actualJsonObject);
28  }
JsonObject getJsonFromFile(final String fileName)
Definition: DDLTest.java:37
TPlanResult processDdlCommand(final String ddlCommand)
Definition: DDLTest.java:32
+ Here is the call graph for this function:

◆ createForeignTableOptions()

void com.mapd.parser.extension.ddl.ForeignTableTest.createForeignTableOptions ( ) throws Exception
inline

Definition at line 194 of file ForeignTableTest.java.

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

194  {
195  final JsonObject expectedJsonObject = getJsonFromFile("cft_Options.json");
196  final TPlanResult result =
197  processDdlCommand("CREATE FOREIGN TABLE test_table (test_column_1 INTEGER) "
198  + "SERVER test_server WITH ( option_1 = 'value_1', option_2 = 2);");
199  final JsonObject actualJsonObject =
200  gson.fromJson(result.plan_result, JsonObject.class);
201  assertEquals(expectedJsonObject, actualJsonObject);
202  }
JsonObject getJsonFromFile(final String fileName)
Definition: DDLTest.java:37
TPlanResult processDdlCommand(final String ddlCommand)
Definition: DDLTest.java:32
+ Here is the call graph for this function:

◆ createForeignTablePoint()

void com.mapd.parser.extension.ddl.ForeignTableTest.createForeignTablePoint ( ) throws Exception
inline

Definition at line 227 of file ForeignTableTest.java.

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

227  {
228  final JsonObject expectedJsonObject = getJsonFromFile("cft_Point.json");
229  final TPlanResult result = processDdlCommand(
230  "CREATE FOREIGN TABLE test_table (test_column_1 POINT) SERVER test_server;");
231  final JsonObject actualJsonObject =
232  gson.fromJson(result.plan_result, JsonObject.class);
233  assertEquals(expectedJsonObject, actualJsonObject);
234  }
JsonObject getJsonFromFile(final String fileName)
Definition: DDLTest.java:37
TPlanResult processDdlCommand(final String ddlCommand)
Definition: DDLTest.java:32
+ Here is the call graph for this function:

◆ createForeignTablePointCompressed()

void com.mapd.parser.extension.ddl.ForeignTableTest.createForeignTablePointCompressed ( ) throws Exception
inline

Definition at line 297 of file ForeignTableTest.java.

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

297  {
298  final JsonObject expectedJsonObject = getJsonFromFile("cft_PointCompressed.json");
299  final TPlanResult result = processDdlCommand(
300  "CREATE FOREIGN TABLE test_table (test_column_1 POINT ENCODING COMPRESSED(32)) SERVER test_server;");
301  final JsonObject actualJsonObject =
302  gson.fromJson(result.plan_result, JsonObject.class);
303  assertEquals(expectedJsonObject, actualJsonObject);
304  }
JsonObject getJsonFromFile(final String fileName)
Definition: DDLTest.java:37
TPlanResult processDdlCommand(final String ddlCommand)
Definition: DDLTest.java:32
+ Here is the call graph for this function:

◆ createForeignTablePolygon()

void com.mapd.parser.extension.ddl.ForeignTableTest.createForeignTablePolygon ( ) throws Exception
inline

Definition at line 257 of file ForeignTableTest.java.

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

257  {
258  final JsonObject expectedJsonObject = getJsonFromFile("cft_Polygon.json");
259  final TPlanResult result = processDdlCommand(
260  "CREATE FOREIGN TABLE test_table (test_column_1 POLYGON) SERVER test_server;");
261  final JsonObject actualJsonObject =
262  gson.fromJson(result.plan_result, JsonObject.class);
263  assertEquals(expectedJsonObject, actualJsonObject);
264  }
JsonObject getJsonFromFile(final String fileName)
Definition: DDLTest.java:37
TPlanResult processDdlCommand(final String ddlCommand)
Definition: DDLTest.java:32
+ Here is the call graph for this function:

◆ createForeignTableSchema()

void com.mapd.parser.extension.ddl.ForeignTableTest.createForeignTableSchema ( ) throws Exception
inline

Definition at line 216 of file ForeignTableTest.java.

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

216  {
217  final JsonObject expectedJsonObject = getJsonFromFile("cft_Schema.json");
218  final TPlanResult result =
219  processDdlCommand("CREATE FOREIGN TABLE test_table SCHEMA 'test_schema' "
220  + "SERVER test_server;");
221  final JsonObject actualJsonObject =
222  gson.fromJson(result.plan_result, JsonObject.class);
223  assertEquals(expectedJsonObject, actualJsonObject);
224  }
JsonObject getJsonFromFile(final String fileName)
Definition: DDLTest.java:37
TPlanResult processDdlCommand(final String ddlCommand)
Definition: DDLTest.java:32
+ Here is the call graph for this function:

◆ createForeignTableSmallInt()

void com.mapd.parser.extension.ddl.ForeignTableTest.createForeignTableSmallInt ( ) throws Exception
inline

Definition at line 367 of file ForeignTableTest.java.

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

367  {
368  final JsonObject expectedJsonObject = getJsonFromFile("cft_SmallInt.json");
369  final TPlanResult result = processDdlCommand(
370  "CREATE FOREIGN TABLE test_table (test_column_1 SMALLINT) SERVER test_server;");
371  final JsonObject actualJsonObject =
372  gson.fromJson(result.plan_result, JsonObject.class);
373  assertEquals(expectedJsonObject, actualJsonObject);
374  }
JsonObject getJsonFromFile(final String fileName)
Definition: DDLTest.java:37
TPlanResult processDdlCommand(final String ddlCommand)
Definition: DDLTest.java:32
+ Here is the call graph for this function:

◆ createForeignTableTime()

void com.mapd.parser.extension.ddl.ForeignTableTest.createForeignTableTime ( ) throws Exception
inline

Definition at line 377 of file ForeignTableTest.java.

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

377  {
378  final JsonObject expectedJsonObject = getJsonFromFile("cft_Time.json");
379  final TPlanResult result = processDdlCommand(
380  "CREATE FOREIGN TABLE test_table (test_column_1 TIME) SERVER test_server;");
381  final JsonObject actualJsonObject =
382  gson.fromJson(result.plan_result, JsonObject.class);
383  assertEquals(expectedJsonObject, actualJsonObject);
384  }
JsonObject getJsonFromFile(final String fileName)
Definition: DDLTest.java:37
TPlanResult processDdlCommand(final String ddlCommand)
Definition: DDLTest.java:32
+ Here is the call graph for this function:

◆ createForeignTableTimestamp()

void com.mapd.parser.extension.ddl.ForeignTableTest.createForeignTableTimestamp ( ) throws Exception
inline

Definition at line 387 of file ForeignTableTest.java.

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

387  {
388  final JsonObject expectedJsonObject = getJsonFromFile("cft_TimeStamp.json");
389  final TPlanResult result = processDdlCommand(
390  "CREATE FOREIGN TABLE test_table (test_column_1 TIMESTAMP) SERVER test_server;");
391  final JsonObject actualJsonObject =
392  gson.fromJson(result.plan_result, JsonObject.class);
393  assertEquals(expectedJsonObject, actualJsonObject);
394  }
JsonObject getJsonFromFile(final String fileName)
Definition: DDLTest.java:37
TPlanResult processDdlCommand(final String ddlCommand)
Definition: DDLTest.java:32
+ Here is the call graph for this function:

◆ createForeignTableTinyInt()

void com.mapd.parser.extension.ddl.ForeignTableTest.createForeignTableTinyInt ( ) throws Exception
inline

Definition at line 397 of file ForeignTableTest.java.

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

397  {
398  final JsonObject expectedJsonObject = getJsonFromFile("cft_TinyInt.json");
399  final TPlanResult result = processDdlCommand(
400  "CREATE FOREIGN TABLE test_table (test_column_1 TINYINT) SERVER test_server;");
401  final JsonObject actualJsonObject =
402  gson.fromJson(result.plan_result, JsonObject.class);
403  assertEquals(expectedJsonObject, actualJsonObject);
404  }
JsonObject getJsonFromFile(final String fileName)
Definition: DDLTest.java:37
TPlanResult processDdlCommand(final String ddlCommand)
Definition: DDLTest.java:32
+ Here is the call graph for this function:

◆ createForeignTableTwoCol()

void com.mapd.parser.extension.ddl.ForeignTableTest.createForeignTableTwoCol ( ) throws Exception
inline

Definition at line 62 of file ForeignTableTest.java.

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

62  {
63  final JsonObject expectedJsonObject = getJsonFromFile("cft_TwoCol.json");
64  final TPlanResult result = processDdlCommand(
65  "CREATE FOREIGN TABLE test_table (test_column_1 INTEGER, test_column_2 TEXT) "
66  + "SERVER test_server;");
67  final JsonObject actualJsonObject =
68  gson.fromJson(result.plan_result, JsonObject.class);
69  assertEquals(expectedJsonObject, actualJsonObject);
70  }
JsonObject getJsonFromFile(final String fileName)
Definition: DDLTest.java:37
TPlanResult processDdlCommand(final String ddlCommand)
Definition: DDLTest.java:32
+ Here is the call graph for this function:

◆ dropForeignTable()

void com.mapd.parser.extension.ddl.ForeignTableTest.dropForeignTable ( ) throws Exception
inline

Definition at line 427 of file ForeignTableTest.java.

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

427  {
428  final JsonObject expectedJsonObject = getJsonFromFile("dft.json");
429  final TPlanResult result = processDdlCommand("DROP FOREIGN TABLE test_table;");
430  final JsonObject actualJsonObject =
431  gson.fromJson(result.plan_result, JsonObject.class);
432  assertEquals(expectedJsonObject, actualJsonObject);
433  }
JsonObject getJsonFromFile(final String fileName)
Definition: DDLTest.java:37
TPlanResult processDdlCommand(final String ddlCommand)
Definition: DDLTest.java:32
+ Here is the call graph for this function:

◆ dropForeignTableIfExists()

void com.mapd.parser.extension.ddl.ForeignTableTest.dropForeignTableIfExists ( ) throws Exception
inline

Definition at line 436 of file ForeignTableTest.java.

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

436  {
437  final JsonObject expectedJsonObject = getJsonFromFile("dft_ifExists.json");
438  final TPlanResult result =
439  processDdlCommand("DROP FOREIGN TABLE IF EXISTS test_table;");
440  final JsonObject actualJsonObject =
441  gson.fromJson(result.plan_result, JsonObject.class);
442  assertEquals(expectedJsonObject, actualJsonObject);
443  }
JsonObject getJsonFromFile(final String fileName)
Definition: DDLTest.java:37
TPlanResult processDdlCommand(final String ddlCommand)
Definition: DDLTest.java:32
+ Here is the call graph for this function:

◆ refresh_foreign_table()

void com.mapd.parser.extension.ddl.ForeignTableTest.refresh_foreign_table ( ) throws Exception
inline

Definition at line 446 of file ForeignTableTest.java.

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

446  {
447  final JsonObject expectedJsonObject = getJsonFromFile("refresh_foreign_table.json");
448  final TPlanResult result = processDdlCommand("REFRESH FOREIGN TABLES test_table");
449  final JsonObject actualJsonObject =
450  gson.fromJson(result.plan_result, JsonObject.class);
451  assertEquals(expectedJsonObject, actualJsonObject);
452  }
JsonObject getJsonFromFile(final String fileName)
Definition: DDLTest.java:37
TPlanResult processDdlCommand(final String ddlCommand)
Definition: DDLTest.java:32
+ Here is the call graph for this function:

◆ refresh_foreign_table_with_evict()

void com.mapd.parser.extension.ddl.ForeignTableTest.refresh_foreign_table_with_evict ( ) throws Exception
inline

Definition at line 465 of file ForeignTableTest.java.

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

465  {
466  final JsonObject expectedJsonObject =
467  getJsonFromFile("refresh_foreign_table_with_evict.json");
468  final TPlanResult result =
469  processDdlCommand("REFRESH FOREIGN TABLES test_table WITH (evict = 'true')");
470  final JsonObject actualJsonObject =
471  gson.fromJson(result.plan_result, JsonObject.class);
472  assertEquals(expectedJsonObject, actualJsonObject);
473  }
JsonObject getJsonFromFile(final String fileName)
Definition: DDLTest.java:37
TPlanResult processDdlCommand(final String ddlCommand)
Definition: DDLTest.java:32
+ Here is the call graph for this function:

◆ refresh_foreign_tables()

void com.mapd.parser.extension.ddl.ForeignTableTest.refresh_foreign_tables ( ) throws Exception
inline

Definition at line 455 of file ForeignTableTest.java.

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

455  {
456  final JsonObject expectedJsonObject = getJsonFromFile("refresh_foreign_tables.json");
457  final TPlanResult result =
458  processDdlCommand("REFRESH FOREIGN TABLES test_table, test_table2");
459  final JsonObject actualJsonObject =
460  gson.fromJson(result.plan_result, JsonObject.class);
461  assertEquals(expectedJsonObject, actualJsonObject);
462  }
JsonObject getJsonFromFile(final String fileName)
Definition: DDLTest.java:37
TPlanResult processDdlCommand(final String ddlCommand)
Definition: DDLTest.java:32
+ Here is the call graph for this function:

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