fix: remove unnecessary column_name param from the AddColumn API (#59)

This commit is contained in:
lichen2015
2026-02-04 14:44:13 +08:00
committed by GitHub
parent 7c577e5f53
commit f1349cc91a
13 changed files with 43 additions and 80 deletions
@@ -142,11 +142,10 @@ void ZVecPyCollection::bind_ddl_methods(
// binding column ddl methods
col.def("AddColumn",
[](Collection &self, const std::string &column_name,
const FieldSchema::Ptr &column_schema,
[](Collection &self, const FieldSchema::Ptr &column_schema,
const std::string &expression, const AddColumnOptions &options) {
const auto status =
self.AddColumn(column_name, column_schema, expression, options);
self.AddColumn(column_schema, expression, options);
throw_if_error(status);
})
.def("DropColumn",