Hi

Is it allowed to provide two similar family names during the creation of an
HBase table?

I was expecting that it is forbidden, **but** this call does not throw any
exception

        String[] families = {"cf", "cf"};
        HTableDescriptor desc = new HTableDescriptor(name);
        for (String cf : families) {
          HColumnDescriptor coldef = new HColumnDescriptor(cf);
          desc.addFamily(coldef);
        }
        try {
            admin.createTable(desc);
        } catch (TableExistsException e) {
            throw new IOException("table \'" + name + "\' already exists");
        }

Reply via email to