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

Function garrow_table_remove_column

c_glib/arrow-glib/table.cpp:589–599  ·  view source on GitHub ↗

* garrow_table_remove_column: * @table: A #GArrowTable. * @i: The index of the column to be removed. * @error: (nullable): Return location for a #GError or %NULL. * * Returns: (nullable) (transfer full): The newly allocated * #GArrowTable that doesn't have the column or %NULL on error. * * Since: 0.3.0 */

Source from the content-addressed store, hash-verified

587 * Since: 0.3.0
588 */
589GArrowTable *
590garrow_table_remove_column(GArrowTable *table, guint i, GError **error)
591{
592 const auto arrow_table = garrow_table_get_raw(table);
593 auto maybe_new_table = arrow_table->RemoveColumn(i);
594 if (garrow::check(error, maybe_new_table, "[table][remove-column]")) {
595 return garrow_table_new_raw(&(*maybe_new_table));
596 } else {
597 return NULL;
598 }
599}
600
601/**
602 * garrow_table_replace_column:

Callers

nothing calls this directly

Calls 3

garrow_table_get_rawFunction · 0.85
checkFunction · 0.70
RemoveColumnMethod · 0.45

Tested by

no test coverage detected