def METHOD_NAME(hdfs, con, temp_table):
    schema = ibis.schema([("foo", "string"), ("year", "int32"), ("month", "int16")])
    con.create_table(temp_table, schema=schema, partition=["year", "month"])
    table = con.table(temp_table)
    part = {"year": 2007, "month": 4}
    subdir = util.guid()
    basename = util.guid()
    path = f"/tmp/{subdir}/{basename}"
    parent = os.path.dirname(path)
    hdfs.mkdir(parent, create_parents=True)
    hdfs.chown(parent, owner="impala", group="supergroup")
    table.add_partition(part, location=path)
    assert len(table.partitions()) == 2
    table.drop_partition(part)
    assert len(table.partitions()) == 1