Due to their used of shapeless.ops.hlist.Tupler, withColumn, selectMany, aggMany and groupByMany are limited to output tuples of size 22. There could be several ways around that, a simple option would be to add alternate implementations of these methods that take a type argument for the "targeted" case class (instead of using tuples). I would start by fixing withColumn which looks like the most urgent.