The aldehyde group changes to ether group.
Explanation:
In the straight chain glucose molecule, there's the 6 carbon atoms attached with each other where there are several hydrogen and hydroxyl radicals attached. The C1 of glucose contains the aldehyde group and the C5 is the most reactive atom of glucose. In a solution, the lone pair of the oxygen atom of hydroxyl group of C5 attacks the electrophilic centre of C1, forming a carbon oxygen ether bond. This bond makes the double bonded oxygen weaker and one of the bond breaks forming oxygen radicle, which then attracts the hydrogen radicle emitted by the ether oxygen to form a hydroxyl group. This is how the ring structure forms in a solution.
Thus, the aldehyde group of glucose changes to ether group.