Skip to content

Commit 78f54a8

Browse files
authored
Merge pull request #97 from pinecone-io/fix-describe-collection
fixing get call
2 parents ed78f13 + 7ba1396 commit 78f54a8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pinecone/manage.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
import time
66
from typing import NamedTuple
7+
8+
import pinecone
79
from pinecone.config import Config
810
from pinecone.core.client.api.index_operations_api import IndexOperationsApi
911
from pinecone.core.client.api_client import ApiClient
@@ -30,6 +32,7 @@ class IndexDescription(NamedTuple):
3032
index_config: None
3133
status: None
3234
metadata_config: None
35+
source_collection: None
3336

3437

3538
class CollectionDescription(object):
@@ -199,7 +202,7 @@ def describe_index(name: str):
199202
replicas=db['replicas'], dimension=db['dimension'], shards=db['shards'],
200203
pods=db.get('pods', db['shards'] * db['replicas']), pod_type=db.get('pod_type', 'p1'),
201204
index_config=db['index_config'], status={'ready': ready, 'state': state},
202-
metadata_config=db.get('metadata_config'))
205+
metadata_config=db.get('metadata_config'), source_collection=db.get('source_collection',''))
203206

204207

205208
def scale_index(name: str, replicas: int):
@@ -264,4 +267,3 @@ def configure_index(name: str, replicas: int = None, pod_type: str = ""):
264267
else:
265268
patch_request = PatchRequest(pod_type=pod_type)
266269
api_instance.configure_index(name, patch_request=patch_request)
267-

0 commit comments

Comments
 (0)