One day he insulted the teacher, who demanded that Yajnavalkya return the knowledge he had acquired. Yajnavalkya vomited the Yajur Veda. The other students turned into Tittiri birds (partridges) and ate the vomited knowledge that came to be known as Taittiriya Samhita.
Yajnavalkya prayed to Surya, who appeared to him and taught him parts of the Yajur Veda that even Vaishampayana did not know.
Yajnavalkya will be the priest and advisor of Kalki, the tenth and last avatar of Vishnu.