private void checkMmLb(Table tbl) throws HiveException { if (!tbl.isStoredAsSubDirectories()) { return; } // TODO [MM gap?]: by design; no-one seems to use LB tables. They will work, but not convert. // It's possible to work around this by re-creating and re-inserting the table. throw new HiveException("Converting list bucketed tables stored as subdirectories " + " to MM is not supported. Please re-create a table in the desired format."); }
if (tbl.isStoredAsSubDirectories()) { tbl_skewedinfo.append("\n STORED AS DIRECTORIES");
if (tbl.isStoredAsSubDirectories()) { tbl_skewedinfo.append("\n STORED AS DIRECTORIES");
if(ts.tableHandle.isStoredAsSubDirectories()) { throw new SemanticException(ErrorMsg.LOAD_INTO_STORED_AS_DIR.getMsg());
tblObj.getSkewedColValueLocationMaps(), tblObj.isStoredAsSubDirectories(), conf);
tblObj.getSkewedColValueLocationMaps(), tblObj.isStoredAsSubDirectories());
inputFormatClass = table.getInputFormatClass(); lbCtx = constructListBucketingCtx(table.getSkewedColNames(), table.getSkewedColValues(), table.getSkewedColValueLocationMaps(), table.isStoredAsSubDirectories()); isListBucketed = table.isStoredAsSubDirectories(); listBucketColNames = table.getSkewedColNames();
inputFormatClass = table.getInputFormatClass(); lbCtx = constructListBucketingCtx(table.getSkewedColNames(), table.getSkewedColValues(), table.getSkewedColValueLocationMaps(), table.isStoredAsSubDirectories(), conf); isListBucketed = table.isStoredAsSubDirectories(); listBucketColNames = table.getSkewedColNames();
if(ts.tableHandle.isStoredAsSubDirectories()) { throw new SemanticException(ErrorMsg.LOAD_INTO_STORED_AS_DIR.getMsg());
dest_tab.isStoredAsSubDirectories(), conf);
destinationTable.isStoredAsSubDirectories());
tblObj.getSkewedColValueLocationMaps(), tblObj.isStoredAsSubDirectories(), conf);
if(ts.tableHandle.isStoredAsSubDirectories()) { throw new SemanticException(ErrorMsg.LOAD_INTO_STORED_AS_DIR.getMsg());
inputFormatClass = table.getInputFormatClass(); lbCtx = constructListBucketingCtx(table.getSkewedColNames(), table.getSkewedColValues(), table.getSkewedColValueLocationMaps(), table.isStoredAsSubDirectories(), conf); isListBucketed = table.isStoredAsSubDirectories(); listBucketColNames = table.getSkewedColNames();
dest_tab.isStoredAsSubDirectories(), conf);