public static boolean isListBucketedTable(Table table) {
    return table.getSd().isStoredAsSubDirectories();
  }
Checks if the table is valid based on the rules for strict managed tables.
@param conf
@param table
@return  Null if the table is valid, otherwise a string message indicating why the table is invalid.
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/utils/HiveStrictManagedUtils.java