MCPcopy Create free account
hub / github.com/apache/impala / ShowCreateTable

Method ShowCreateTable

be/src/service/frontend.cc:227–238  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

225}
226
227Status Frontend::ShowCreateTable(const TTableName& table_name, bool with_stats,
228 int32_t show_create_table_partition_limit, string* response) {
229 // Build a small struct to pass both pieces since the JNI method expects a single arg.
230 // Reuse TCatalogOpRequest fields: set show_create_table_params and
231 // show_create_table_with_stats.
232 TCatalogOpRequest req;
233 req.op_type = TCatalogOpType::SHOW_CREATE_TABLE;
234 req.__set_show_create_table_params(table_name);
235 req.__set_show_create_table_with_stats(with_stats);
236 req.__set_show_create_table_partition_limit(show_create_table_partition_limit);
237 return JniUtil::CallJniMethod(fe_, show_create_table_id_, req, response);
238}
239
240Status Frontend::ShowCreateFunction(const TGetFunctionsParams& params, string* response) {
241 return JniUtil::CallJniMethod(fe_, show_create_function_id_, params, response);

Callers 1

ExecLocalCatalogOpMethod · 0.80

Calls 1

CallJniMethodFunction · 0.85

Tested by

no test coverage detected