Foo->set_sql(distinct => 'SELECT DISTINCT...')