class_docstr: This handler handles connection and execution of the Milvus statements.
class_docstr_tok: ["This","handler","handles","connection","and","execution","of","the","Milvus","statements","."]
docstr: Get columns in a Milvus collection
docstr_tok: ["Get","columns","in","a","Milvus","collection"]
code: def get_columns(self, table_name: str) -> HandlerResponse:
      """Get columns in a Milvus collection"""
      collection = None
      try:
          collection = Collection(table_name)
      except Exception as e:
          return Response(
              resp_type=RESPONSE_TYPE.ERROR,
              error_message=f"Error finding table: {e}",
          )
      try:
          field_names = {
              field["name"] for field in collection.schema.fields
          }
          schema = [
              mindsdb_schema_field
              for mindsdb_schema_field in self.SCHEMA
              if mindsdb_schema_field["name"] in field_names
          ]
          data = pd.DataFrame(schema)
          data.columns = ["COLUMN_NAME", "DATA_TYPE"]
          return HandlerResponse(data_frame=data)
      except Exception as e:
          return Response(
              resp_type=RESPONSE_TYPE.ERROR,
              error_message=f"Error finding table: {e}",
          )
  
imports: from collections import OrderedDict
  from typing import List, Optional
  import pandas
  from pymilvus import Collection, CollectionSchema, DataType, FieldSchema, connections, utility
  from mindsdb.integrations.libs.const import HANDLER_CONNECTION_ARG_TYPE
  from mindsdb.integrations.libs.response import RESPONSE_TYPE
  from mindsdb.integrations.libs.response import HandlerResponse
  from mindsdb.integrations.libs.response import HandlerResponse
  from mindsdb.integrations.libs.response import HandlerStatusResponse
  from mindsdb.integrations.libs.vectordatabase_handler import FilterCondition, FilterOperator, TableField, VectorStoreHandler
  from mindsdb.utilities import log
label_desc: Use image node_id 14 for calling the MilvusHandler obj's underlying member method code with example usage: obj.get_columns(table_name) and returns: HandlerResponse, Response, Response