Skip to content

Commit 688889a

Browse files
committed
[close ch28940] add python api fn for update from hive hdfs dataset
1 parent ae8e17b commit 688889a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

dataikuapi/dss/dataset.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,13 @@ def synchronize_hive_metastore(self):
163163
self.client._perform_empty(
164164
"POST" , "/projects/%s/datasets/%s/actions/synchronizeHiveMetastore" %(self.project_key, self.dataset_name))
165165

166+
def update_from_hive(self):
167+
"""
168+
Resynchronize this dataset from its Hive definition
169+
"""
170+
self.client._perform_empty(
171+
"POST", "/projects/%s/datasets/%s/actions/updateFromHive" %(self.project_key, self.dataset_name))
172+
166173
def compute_metrics(self, partition='', metric_ids=None, probes=None):
167174
"""
168175
Compute metrics on a partition of this dataset.

0 commit comments

Comments
 (0)