MCPcopy Create free account
hub / github.com/apache/arrow / GetColumns_V2

Method GetColumns_V2

cpp/src/arrow/flight/sql/odbc/odbc_impl/flight_sql_statement.cc:214–233  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

212}
213
214std::shared_ptr<ResultSet> FlightSqlStatement::GetColumns_V2(
215 const std::string* catalog_name, const std::string* schema_name,
216 const std::string* table_name, const std::string* column_name) {
217 ClosePreparedStatementIfAny(prepared_statement_, call_options_);
218
219 Result<std::shared_ptr<FlightInfo>> result = sql_client_.GetTables(
220 call_options_, catalog_name, schema_name, table_name, true, nullptr);
221 ThrowIfNotOK(result.status());
222
223 auto flight_info = result.ValueOrDie();
224
225 auto transformer = std::make_shared<GetColumns_Transformer>(
226 metadata_settings_, OdbcVersion::V_2, column_name);
227
228 current_result_set_ = std::make_shared<FlightSqlResultSet>(
229 sql_client_, client_options_, call_options_, flight_info, transformer, diagnostics_,
230 metadata_settings_);
231
232 return current_result_set_;
233}
234
235std::shared_ptr<ResultSet> FlightSqlStatement::GetColumns_V3(
236 const std::string* catalog_name, const std::string* schema_name,

Callers 1

GetColumnsMethod · 0.80

Calls 5

ThrowIfNotOKFunction · 0.85
ValueOrDieMethod · 0.80
GetTablesMethod · 0.45
statusMethod · 0.45

Tested by

no test coverage detected