Filtering: Input-fields or buttons?

I'm currently working on new tables for our web platform. I came to a point when I need to design some filtering options as part of the design. One of our developers told me to use a text field that opens a menu since he already developed it:

enter image description here

For some reason, it looks a bit strange to me. I don't really know why, but I prefer using buttons such as these: enter image description here

What do you think? is there any rational explanation why using buttons is better than input-fields?