Add Column

table = self._hc.get_table(tbl_name = self._table_name, database_name = self._database_name)  
fields = [  
    HippoField("column_add_1", False, HippoType.STRING),  
    HippoField("column_add_2", False, HippoType.FLOAT_VECTOR, type_params = {"dimension": 128})  
]  
result = table.add_columns(fields = fields) 

Result:

This method will a Boolean value to represent whether this operation is successful. If the error pops up when adding columns, “ValueError” exception will be raised.

Parameter description:

ParametersDescriptionRequired
fields (list)Field list to be addedYes

Table 89 Add Column (Python API)