Definition at line 46 of file TestServer.java.
void com.mapd.parser.server.test.TestServer.callCalciteCheck |
( |
String |
query, |
|
|
String |
result |
|
) |
| |
|
inlineprivate |
Definition at line 243 of file TestServer.java.
Referenced by com.mapd.parser.server.test.TestServer.randomCalciteCall(), and com.mapd.parser.server.test.TestServer.testSimpleCall().
245 TTransport transport;
246 transport =
new TSocket(
"localhost", 11000);
248 TProtocol protocol =
new TBinaryProtocol(transport);
249 CalciteServer.Client client =
new CalciteServer.Client(protocol);
251 TQueryParsingOption queryParsingOption =
new TQueryParsingOption();
252 queryParsingOption.legacy_syntax =
false;
253 queryParsingOption.is_explain =
false;
254 queryParsingOption.check_privileges =
false;
255 queryParsingOption.is_explain_detail =
false;
257 TOptimizationOption optimizationOption =
new TOptimizationOption();
258 optimizationOption.is_view_optimize =
false;
259 optimizationOption.enable_watchdog =
false;
260 optimizationOption.filter_push_down_info =
new ArrayList<>();
262 TPlanResult algebra = client.process(
"user",
271 assertEquals(algebra.plan_result,
result);
272 }
catch (AssertionError s) {
273 HEAVYDBLOGGER.error(
"error during callCalciteCheck");
276 }
catch (TException x) {
void com.mapd.parser.server.test.TestServer.randomCalciteCall |
( |
| ) |
|
|
inlineprivate |
Definition at line 150 of file TestServer.java.
References com.mapd.parser.server.test.TestServer.callCalciteCheck().
Referenced by com.mapd.parser.server.test.TestServer.testRandomCall(), and com.mapd.parser.server.test.TestServer.testThreadedCall().
151 Random r =
new Random();
152 int aliasID = r.nextInt(100000) + 1000000;
155 "Select TABALIAS%d.ENAME AS COLALIAS%d from EMP TABALIAS%d LIMIT %d",
163 +
" \"id\": \"0\",\n"
164 +
" \"relOp\": \"LogicalTableScan\",\n"
165 +
" \"fieldNames\": [\n"
175 +
" \"SLACKARR1\",\n"
183 +
" \"inputs\": []\n"
186 +
" \"id\": \"1\",\n"
187 +
" \"relOp\": \"LogicalProject\",\n"
189 +
" \"COLALIAS%d\"\n"
198 +
" \"id\": \"2\",\n"
199 +
" \"relOp\": \"LogicalSort\",\n"
200 +
" \"collation\": [],\n"
202 +
" \"literal\": %d,\n"
203 +
" \"type\": \"DECIMAL\",\n"
205 +
" \"precision\": 7,\n"
206 +
" \"type_scale\": 0,\n"
207 +
" \"type_precision\": 10\n"
211 +
" \"id\": \"3\",\n"
212 +
" \"relOp\": \"LogicalProject\",\n"
214 +
" \"COLALIAS%d\"\n"
223 +
" \"id\": \"4\",\n"
224 +
" \"relOp\": \"LogicalSort\",\n"
225 +
" \"collation\": [],\n"
227 +
" \"literal\": %d,\n"
228 +
" \"type\": \"DECIMAL\",\n"
230 +
" \"precision\": 7,\n"
231 +
" \"type_scale\": 0,\n"
232 +
" \"type_precision\": 10\n"
void callCalciteCheck(String query, String result)
static void com.mapd.parser.server.test.TestServer.startServer |
( |
| ) |
|
|
inlinestatic |
static void com.mapd.parser.server.test.TestServer.stopServer |
( |
| ) |
|
|
inlinestatic |
void com.mapd.parser.server.test.TestServer.testRandomCall |
( |
| ) |
|
|
inline |
void com.mapd.parser.server.test.TestServer.testSimpleCall |
( |
| ) |
|
|
inline |
Definition at line 102 of file TestServer.java.
References com.mapd.parser.server.test.TestServer.callCalciteCheck().
107 +
" \"id\": \"0\",\n"
108 +
" \"relOp\": \"LogicalTableScan\",\n"
109 +
" \"fieldNames\": [\n"
119 +
" \"SLACKARR1\",\n"
127 +
" \"inputs\": []\n"
130 +
" \"id\": \"1\",\n"
131 +
" \"relOp\": \"LogicalProject\",\n"
void callCalciteCheck(String query, String result)
void com.mapd.parser.server.test.TestServer.testThreadedCall |
( |
| ) |
|
|
inline |
volatile AssertionError com.mapd.parser.server.test.TestServer.ae |
|
private |
final Logger com.mapd.parser.server.test.TestServer.HEAVYDBLOGGER = LoggerFactory.getLogger(TestServer.class) |
|
staticprivate |
final int com.mapd.parser.server.test.TestServer.TEST_THREAD_COUNT = 3 |
|
staticprivate |
volatile boolean com.mapd.parser.server.test.TestServer.threadHadFailure = false |
|
private |
volatile int com.mapd.parser.server.test.TestServer.threadsRun = 0 |
|
private |
The documentation for this class was generated from the following file:
- /home/jenkins-slave/workspace/core-os-doxygen/java/calcite/src/test/java/com/heavydb/parser/server/test/TestServer.java