Basically, we need to make the switch from:
filename | transcoded_original | transcoded_image | transcoded video |
a.png | 31 | 20 | 0 |
...to...
filename | transcoding | count |
a.png | original | 31 |
a.png | image | 20 |
Right now the UDF is written for the first form, and we need to change it so that it returns the literal transcoding like in the values of transcoding in the second form.