1620s, from sun (n.) + fish (n.). Used of various species, with reference to round shape or brilliant appearance. Short form sunny is attested from 1835.
Entries linking to sunfish
sun n.
Old English sunne "the sun," from Proto-Germanic *sunno (source also of Old Norse, Old Saxon, Old High German sunna, Middle Dutch sonne, Dutch zon, German Sonne, Gothic sunno "the sun"), from PIE *s(u)wen-, alternative form of root *sawel- "the sun."
Old English sunne was feminine (as generally in Germanic), and the fem. pronoun was used in English until 16c.; since then masc. has prevailed. The empire on which the sun never sets (1630) originally was the Spanish, later the British. To have one's place in the sun (1680s) is from Pascal's "Pensées"; the German imperial foreign policy sense (1897) is from a speech by von Bülow.
fish n.
"a vertebrate which has gills and fins adapting it for living in the water," Old English fisc "fish," from Proto-Germanic *fiskaz (source also of Old Saxon, Old Frisian, Old High German fisc, Old Norse fiskr, Middle Dutch visc, Dutch vis, German Fisch, Gothic fisks), perhaps from PIE root *pisk- "a fish." But Boutkan on phonetic grounds thinks it might be a northwestern Europe substratum word.
Popularly, since Old English, "any animal that lives entirely in the water," hence shellfish, starfish (an early 15c. manuscript has fishes bestiales for "water animals other than fishes"). The plural is fishes, but in a collective sense, or in reference to fish meat as food, the singular fish generally serves for a plural. In reference to the constellation Pisces from late 14c.
Fish (n.) for "person" is from 1750 with a faintly dismissive sense; earlier it was used in reference to a person considered desirable to "catch" (1722). Figurative sense of fish out of water "person in an unfamiliar and awkward situation" attested by 1610s (a fisshe out of the see in the same sense is from mid-15c.). To drink like a fish is from 1744. To have other fish to fry "other objects which invite or require attention" is from 1650s. Fish-eye as a type of lens is from 1961. Fish-and-chips is from 1876; fish-fingers from 1962.