@Override public void dropSegmentation(LensSessionHandle sessionid, String cubeSegName) throws LensException { try (SessionContext ignored = new SessionContext(sessionid)){ getClient(sessionid).dropSegmentation(cubeSegName); log.info("Dropped segemntation " + cubeSegName); } }
public void alterSegmentation(String segName, Segmentation seg) throws HiveException, LensException { getTableWithTypeFailFast(segName, CubeTableType.SEGMENTATION); if (!(getSegmentation(segName) == seg)) { dropSegmentation(segName); createSegmentation(seg); updateSegmentationCache(segName); } }
public void alterSegmentation(String segName, Segmentation seg) throws HiveException, LensException { getTableWithTypeFailFast(segName, CubeTableType.SEGMENTATION); checkIfAuthorized(); if (!(getSegmentation(segName) == seg)) { dropSegmentation(segName); createSegmentation(seg); updateSegmentationCache(segName); } }
client.dropSegmentation(segmentName); assertFalse(client.tableExists(segmentName));