Well, technically the glucose isn't reacting, just dissolving in the water, sugar in water... its just dissolving, floating around the water molecules. On the other hand, the sodium is indeed reacting wit the water, so as there is no water left in the reaction when it is finished per the equation
2Na(s) + 2H2O(l) ----> 2NaOH(aq) + H2(g) The H2O is actually used in the reaction, while glucose isn't reacting with the water at all perse