In John 2 Jesus, having declared that his hour ‘has not yet come’ (v. 4), turns water into wine at a wedding uniting a bride and a bridegroom; a celebration, a feast.
In John 3 Jesus calls himself the bridegroom (3:29).
Conclusion: John 2 is an anticipation of the real wedding, the true celebration, the ultimate feast. That’s why Jesus told his mom, ‘My time has not yet come.’ His own wedding was yet to come. (see further D. A. Carson, p. 179 of this book)
As Edmund Clowney once put it, reflecting on Jesus’ presence at the Cana wedding:
Jesus sat amid all the joy sipping the coming sorrow, so that you and I today can sit amid all this world’s sorrow, sipping the coming joy.