In the first example ḥattā coordinates the accusative head as part of the fish; in the second it is a preposition taking a genitive noun.
Opening interactive controls...
Coordinating versus Prepositional Hattā
Conjunctions: Ten Particles, Meanings and Parsing
In the first example ḥattā coordinates the accusative head as part of the fish; in the second it is a preposition taking a genitive noun.