public static boolean isSkewedStoredAsDirs(FileSinkDesc fsInputDesc) {
    return (fsInputDesc.getLbCtx() == null) ? false : fsInputDesc.getLbCtx()
        .isSkewedStoredAsDir();
  }
check if it is skewed table and stored as dirs.

@param fsInputDesc
@return
ql/src/java/org/apache/hadoop/hive/ql/optimizer/GenMapRedUtils.java