Hi Hail Team,
Under what conditions does a supplied partition_hint get used to repartition a Table?
With the below code, “new_ht” has the same number of partitions as “ht” after supplying a partition_hint (although “new_ht” is only slightly smaller than “ht”).
ht = hl.read_table(ht_path)
grouping = hl.struct(context=ht.context,
ref=ht.ref,
alt=ht.alt,
methylation_level=ht.methylation_level,
exome_coverage=ht.exome_coverage)
agg = {"variant_count": hl.agg.count()}
new_ht = ht.group_by(**grouping).partition_hint(n=100).aggregate(**agg)
ht.n_partitions()
new_ht.n_partitions()